Skip to content

Commit f05ab5c

Browse files
committed
split docs deployment into two stages
1 parent 6cdf720 commit f05ab5c

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ jobs:
2828
- name: Run tests
2929
run: uv run pytest -q
3030

31-
deploy-docs:
32-
if: github.event_name == 'push'
33-
needs: [test]
31+
check-docs:
3432
runs-on: ubuntu-latest
3533
steps:
3634
- uses: actions/checkout@v4
@@ -46,5 +44,22 @@ jobs:
4644
run: uv sync --group dev
4745
- name: Check if documentation can be built
4846
run: uv run mkdocs build -s
47+
48+
deploy-docs:
49+
if: github.event_name == 'push'
50+
needs: [test, check-docs]
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
- name: Set up Python
55+
uses: actions/setup-python@v5
56+
with:
57+
python-version: '3.12'
58+
- name: Install uv
59+
uses: astral-sh/setup-uv@v6
60+
with:
61+
enable-cache: 'true'
62+
- name: Install deps
63+
run: uv sync --group dev
4964
- name: Deploy documentation
5065
run: uv run mkdocs gh-deploy --force

0 commit comments

Comments
 (0)