File tree Expand file tree Collapse file tree 1 file changed +24
-16
lines changed
Expand file tree Collapse file tree 1 file changed +24
-16
lines changed Original file line number Diff line number Diff line change 1- name : documentation
1+ name : " Build and deploy Github pages "
22
3- on : push
4-
5- permissions :
6- contents : write
3+ on :
4+ push :
5+ branches :
6+ - main
77
88jobs :
9- docs :
9+ deploy :
1010 runs-on : ubuntu-latest
11+
1112 steps :
12- - uses : actions/checkout@v4
13- - uses : actions/setup-python@v5
13+ - name : Checkout repository
14+ uses : actions/checkout@v4
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v4
18+ with :
19+ python-version : ' 3.10'
20+
1421 - name : Install dependencies
1522 run : |
16- pip install sphinx sphinx_rtd_theme myst_parser
17- - name : Sphinx build
23+ python -m pip install --upgrade pip
24+ pip install sphinx
25+
26+ - name : Build Sphinx documentation
1827 run : |
19- sphinx-build doc _build
28+ cd doc
29+ make html
30+
2031 - name : Deploy to GitHub Pages
21- uses : peaceiris/actions-gh-pages@v3
22- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
32+ uses : peaceiris/actions-gh-pages@v4
2333 with :
24- publish_branch : gh-pages
2534 github_token : ${{ secrets.GITHUB_TOKEN }}
26- publish_dir : _build/
27- force_orphan : true
35+ publish_dir : doc/_build/html
You can’t perform that action at this time.
0 commit comments