File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ name: Build & Deploy Docs
33on :
44 push :
55 branches : [main]
6- paths : ["sphinx-docs/**"]
6+ paths :
7+ - " .github/workflows/docs.yml"
8+ - " pyproject.toml"
9+ - " sphinx-docs/**"
710 workflow_dispatch :
811
912permissions :
@@ -25,11 +28,20 @@ jobs:
2528 with :
2629 python-version : " 3.12"
2730
31+ - name : Install uv
32+ uses : astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
33+ with :
34+ enable-cache : true
35+ cache-dependency-glob : |
36+ pyproject.toml
37+ sphinx-docs/pyproject.toml
38+
2839 - name : Install dependencies
29- run : pip install -r sphinx-docs/requirements.txt
40+ run : uv sync --all-packages
3041
3142 - name : Build HTML
32- run : sphinx-build -b html sphinx-docs sphinx-docs/_build/html
43+ working-directory : sphinx-docs
44+ run : uv run --no-sync sphinx-build -b html . _build/html
3345
3446 - name : Upload artifact
3547 uses : actions/upload-pages-artifact@v3
You can’t perform that action at this time.
0 commit comments