File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Documentation to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : [ main, master ]
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : " pages"
15+ cancel-in-progress : false
16+
17+ jobs :
18+ build-and-deploy :
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v4
24+
25+ - name : Set up Python
26+ uses : actions/setup-python@v5
27+ with :
28+ python-version : ' 3.11'
29+
30+ - name : Cache pip dependencies
31+ uses : actions/cache@v4
32+ with :
33+ path : ~/.cache/pip
34+ key : ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
35+ restore-keys : |
36+ ${{ runner.os }}-pip-
37+
38+ - name : Install dependencies
39+ run : |
40+ python -m pip install --upgrade pip
41+ pip install -r docs/requirements.txt
42+
43+ - name : Build multilingual documentation
44+ run : |
45+ cd docs
46+ python build_multilang.py
47+
48+ - name : Setup Pages
49+ uses : actions/configure-pages@v4
50+
51+ - name : Upload Pages artifact
52+ uses : actions/upload-pages-artifact@v3
53+ with :
54+ path : docs/build/html
55+
56+ - name : Deploy to GitHub Pages
57+ id : deployment
58+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments