1717
1818jobs :
1919
20- build-last-tagged :
20+ build-official-version :
2121 runs-on : ubuntu-latest
22- if : " github.event.inputs.run_deploy"
2322
2423 steps :
2524 - uses : actions/checkout@v3
2625 with :
2726 fetch-depth : 0
2827
2928 - name : Checkout last tagged
29+ if : " github.event.inputs.run_deploy"
3030 run : |
3131 git checkout $(git describe --tags `git rev-list --tags --max-count=1`);
3232
3333 - name : Setup conda
34+ if : " github.event.inputs.run_deploy"
3435 uses : conda-incubator/setup-miniconda@v2
3536 with :
3637 activate-environment : sphinx
3738 environment-file : environment.yaml
3839 channels : conda-forge
3940
4041 - name : Build last tagged version
42+ if : " github.event.inputs.run_deploy"
4143 shell : bash -l {0}
4244 run : |
4345 make clean
44- make html
46+ make html O="-W"
4547
4648 - name : Deploy 🚀
49+ if : " github.event.inputs.run_deploy"
4750 uses : peaceiris/actions-gh-pages@v3
4851 with :
4952 deploy_key : ${{ secrets.ACTIONS_DEPLOY_KEY }}
5457
5558 sphinx-build :
5659 runs-on : ubuntu-latest
57- if : " !github.event.inputs.run_deploy"
58-
60+ needs : [build-official-version]
5961 steps :
6062 - uses : actions/checkout@v3
6163 with :
7476 - name : Build Documentation
7577 shell : bash -l {0}
7678 run : |
77- make html
79+ make html O="-W"
7880
7981 - name : Deploy 🚀
8082 if : github.ref == 'refs/heads/master'
8991
9092 sphinx-build-new-theme :
9193 runs-on : ubuntu-latest
92- if : " !github.event.inputs.run_deploy"
93-
94+ needs : [build-official-version]
9495 steps :
9596 - uses : actions/checkout@v3
9697 with :
@@ -113,7 +114,7 @@ jobs:
113114 - name : Build Documentation
114115 shell : bash -l {0}
115116 run : |
116- make html-dev
117+ make html-dev O="-W"
117118
118119 - name : Deploy 🚀
119120 uses : peaceiris/actions-gh-pages@v3
0 commit comments