Skip to content

Commit 5dccd04

Browse files
committed
feat: add GitHub Actions workflow for documentation deployment
1 parent 91fc1e9 commit 5dccd04

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.12'
19+
20+
- name: Install uv
21+
run: |
22+
curl -LsSf https://astral.sh/uv/install.sh | sh
23+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
24+
25+
- name: Install dependencies
26+
run: |
27+
uv pip install --system .
28+
uv pip install --system ".[docs]"
29+
30+
- name: Build documentation
31+
run: uv run task docs-build
32+
33+
- name: Deploy to GitHub Pages
34+
uses: peaceiris/actions-gh-pages@v3
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./site

0 commit comments

Comments
 (0)