File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build documentation
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ docs :
14+ runs-on : ubuntu-24.04
15+
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+
20+ - uses : mamba-org/setup-micromamba@v1
21+ with :
22+ micromamba-version : ' 2.0.5-0' # any version from https://github.com/mamba-org/micromamba-releases
23+ environment-file : environment.yml
24+ init-shell : bash
25+ cache-environment : true
26+ post-cleanup : ' all'
27+ generate-run-shell : false
28+
29+ - name : Sphinx build
30+ run : |
31+ sphinx-build doc _build
32+ shell : bash -el {0}
33+
34+ - name : Deploy to GitHub Pages
35+ uses : peaceiris/actions-gh-pages@v4
36+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
37+ with :
38+ publish_branch : gh-pages
39+ github_token : ${{ secrets.GITHUB_TOKEN }}
40+ publish_dir : _build/
41+ force_orphan : true
You can’t perform that action at this time.
0 commit comments