Skip to content

Commit ac227c3

Browse files
authored
Fix GitHub Pages docs deployment (#1006)
1 parent 2ee7106 commit ac227c3

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,28 @@ jobs:
3535
with:
3636
ref: ${{ (github.event_name == 'push' && github.ref_name == 'ci_dashboard') && 'main' || '' }}
3737

38+
- name: Set up Python
39+
uses: actions/setup-python@v5
40+
with:
41+
python-version: "3.10"
42+
cache: "pip"
43+
cache-dependency-path: docs/requirements.txt
44+
45+
- name: Install documentation dependencies
46+
run: |
47+
python -m pip install --upgrade pip
48+
pip install -r docs/requirements.txt
49+
50+
- name: Build Sphinx documentation
51+
run: |
52+
cd docs
53+
make clean html
54+
55+
- name: Verify documentation root
56+
run: |
57+
test -f docs/_build/html/index.html \
58+
|| { echo "::error::docs build did not produce index.html — refusing to deploy a broken site"; exit 1; }
59+
3860
# The static dashboard (html/js/css/vendor/png) is kept OFF main to keep
3961
# the repo lean; it lives on the ci_dashboard branch. Fetch it into the
4062
# /ci-dashboard subdir of the built site.

0 commit comments

Comments
 (0)