1313 required : false
1414 default : " "
1515
16-
16+ defaults :
17+ run :
18+ shell : bash -leo pipefail {0} {0}
19+
1720
1821jobs :
1922
2023 build-official-version :
24+
2125 runs-on : ubuntu-latest
2226
2327 steps :
24- - uses : actions/checkout@v3
28+ - uses : actions/checkout@v4
2529 with :
2630 fetch-depth : 0
2731
2832 - name : Checkout last tagged
29- if : " github.event.inputs.run_deploy"
3033 run : |
3134 git checkout $(git describe --tags `git rev-list --tags --max-count=1`);
3235
33- - name : Setup conda
34- if : " github.event.inputs.run_deploy"
35- uses : conda-incubator/setup-miniconda@v2
36+ - name : Install mamba
37+ uses : mamba-org/setup-micromamba@v1
3638 with :
37- activate-environment : sphinx
3839 environment-file : environment.yaml
39- channels : conda-forge
40-
40+
4141 - name : Build last tagged version
42- if : " github.event.inputs.run_deploy"
43- shell : bash -l {0}
4442 run : |
4543 make clean
4644 make html O="-W"
4745
46+ - name : Check links
47+ run : sphinx-build -M linkcheck . _build -W --keep-going -a -q
48+
4849 - name : Deploy 🚀
49- if : " github.event.inputs.run_deploy"
50+ if : github.event.inputs.run_deploy
5051 uses : peaceiris/actions-gh-pages@v3
5152 with :
5253 deploy_key : ${{ secrets.ACTIONS_DEPLOY_KEY }}
@@ -57,35 +58,23 @@ jobs:
5758
5859 sphinx-build :
5960 runs-on : ubuntu-latest
60- needs : [build-official-version]
6161 steps :
62- - uses : actions/checkout@v3
63- with :
64- fetch-depth : 0
65-
66- - name : Setup conda
67- uses : conda-incubator/setup-miniconda@v2
62+ - uses : actions/checkout@v4
63+
64+ - name : Install mamba
65+ uses : mamba-org/setup-micromamba@v1
6866 with :
69- activate-environment : sphinx
7067 environment-file : environment.yaml
71- channels : conda-forge
72-
73- - uses : ammaraskar/sphinx-problem-matcher@master
74- # if: github.ref != 'refs/heads/master'
75-
68+
7669 - name : Build Documentation
77- shell : bash -l {0}
78- run : |
79- make html O="-W"
70+ run : make html O="-W"
8071
8172 - name : Check links
82- shell : bash -l {0}
83- run : |
84- make linkcheck
73+ run : sphinx-build -M linkcheck . _build -W --keep-going -a -q
8574
8675 - name : Deploy 🚀
87- if : github.ref == 'refs/heads/master'
8876 uses : peaceiris/actions-gh-pages@v3
77+ if : github.ref == 'refs/heads/master'
8978 with :
9079 deploy_key : ${{ secrets.ACTIONS_DEPLOY_KEY }}
9180 external_repository : AnyBody/tutorials
0 commit comments