File tree Expand file tree Collapse file tree 2 files changed +50
-51
lines changed
Expand file tree Collapse file tree 2 files changed +50
-51
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Deploy docs
2+
3+ on :
4+ pull_request :
5+
6+ push :
7+ tags :
8+ - " v*"
9+
10+ jobs :
11+ build-docs :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : checkout
16+ uses : actions/checkout@v3
17+ with :
18+ fetch-depth : 0
19+
20+ - name : Setup Mamba
21+ uses : mamba-org/provision-with-micromamba@v14
22+ with :
23+ environment-file : false
24+
25+ - name : Build environment
26+ shell : bash -l {0}
27+ run : |
28+ micromamba create --name TEST python=3 --file requirements.txt --file requirements-dev.txt --channel conda-forge
29+ micromamba activate TEST
30+ python -m pip install -e . --no-deps --force-reinstall
31+
32+ - name : Get the version
33+ id : get_version
34+ run : echo ::set-output name=VERSION::$(python setup.py --version)
35+
36+ - name : Build documentation
37+ shell : bash -l {0}
38+ run : |
39+ set -e
40+ micromamba activate TEST
41+ pushd docs
42+ make clean html linkcheck
43+ popd
44+
45+ - name : Deploy
46+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
47+ uses : peaceiris/actions-gh-pages@v3
48+ with :
49+ github_token : ${{ secrets.GITHUB_TOKEN }}
50+ publish_dir : docs/build/html
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments