File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments