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