Skip to content

Commit 3548407

Browse files
authored
chore: fix docs CI workflow (#149)
Signed-off-by: Aleksey Gurtovoy <aleks@wildbitscomputing.com>
1 parent 6196159 commit 3548407

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/docs.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ name: Build & Deploy Docs
33
on:
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

912
permissions:
@@ -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

0 commit comments

Comments
 (0)