File tree Expand file tree Collapse file tree 1 file changed +78
-0
lines changed Expand file tree Collapse file tree 1 file changed +78
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docs
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - 3.0_develop
8+ pull_request :
9+ workflow_dispatch :
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.ref }}
13+ cancel-in-progress : true
14+
15+ permissions :
16+ contents : read
17+
18+ jobs :
19+ build :
20+ name : Build docs
21+ runs-on : ubuntu-latest
22+
23+ steps :
24+ - uses : actions/checkout@v4
25+ with :
26+ fetch-depth : 0
27+
28+ - name : Set up Python
29+ uses : actions/setup-python@v5
30+ with :
31+ python-version : ' 3.12'
32+
33+ - name : Install Python dependencies
34+ run : |
35+ python -m pip install uv
36+ uv pip install --system --upgrade pip wheel
37+ uv pip install --system --upgrade ".[docs]"
38+ uv pip list --system
39+
40+ - name : Test and build docs
41+ run : |
42+ pushd docs
43+ make html
44+
45+ - name : Fix permissions if needed
46+ run : |
47+ chmod -c -R +rX "docs/_build/html/" | while read line; do
48+ echo "::warning title=Invalid file permissions automatically fixed::$line"
49+ done
50+
51+ - name : Upload artifact
52+ uses : actions/upload-pages-artifact@v3
53+ with :
54+ path : ' docs/_build/html'
55+
56+ deploy :
57+ name : Deploy docs to GitHub Pages
58+ if : github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/3.0_develop' || github.ref == 'refs/heads/doc_week')
59+ needs : build
60+ # Set permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
61+ permissions :
62+ contents : read
63+ pages : write
64+ id-token : write
65+
66+ environment :
67+ name : github-pages
68+ url : ${{ steps.deployment.outputs.page_url }}
69+
70+ runs-on : ubuntu-latest
71+
72+ steps :
73+ - name : Setup Pages
74+ uses : actions/configure-pages@v5
75+
76+ - name : Deploy to GitHub Pages
77+ id : deployment
78+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments