Skip to content

Commit 1e1d2b7

Browse files
committed
Update CI pipeline
1 parent edbd49b commit 1e1d2b7

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/build.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,36 @@ on:
1717

1818
jobs:
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 }}
@@ -54,8 +57,7 @@ jobs:
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:
@@ -74,7 +76,7 @@ jobs:
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'
@@ -89,8 +91,7 @@ jobs:
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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33

44
# You can set these variables from the command line.
5-
SPHINXOPTS = -W
5+
SPHINXOPTS =
66
SPHINXBUILD = python -msphinx
77
SPHINXPROJ = AnyBodyTutorials
88
SOURCEDIR = .

0 commit comments

Comments
 (0)