Skip to content

Commit 37cded5

Browse files
committed
fixing CI
1 parent 4aecb1d commit 37cded5

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,30 @@ jobs:
139139
- name: build
140140
run: dist/ubuntu/build.sh -DLIBSTORED_DOCUMENTATION=ON -DLIBSTORED_PYLIBSTORED=ON -DLIBSTORED_HAVE_ZTH=ON
141141

142+
# If everything is OK, publish documentation
143+
documentation:
144+
if: github.ref == 'refs/heads/master'
145+
needs: [build-ubuntu, build-ubuntu-prev, build-windows, build-mac, build-mingw]
146+
runs-on: ubuntu-latest
147+
steps:
148+
- name: checkout
149+
uses: actions/checkout@v3
150+
- name: bootstrap
151+
run: |
152+
sudo apt update
153+
dist/ubuntu/bootstrap.sh
154+
sudo apt install libegl1
155+
- name: build
156+
run: dist/ubuntu/build.sh -DLIBSTORED_DOCUMENTATION=ON -DLIBSTORED_PYLIBSTORED=ON -DLIBSTORED_HAVE_ZTH=ON
157+
- name: deploy
158+
uses: peaceiris/actions-gh-pages@v3
159+
with:
160+
github_token: ${{ secrets.GITHUB_TOKEN }}
161+
publish_dir: ./sphinx/_build/html
162+
142163
# Dummy job that depends on all other build-* jobs.
143164
build-all-check:
144-
needs: [build-ubuntu, build-ubuntu-prev, build-windows, build-mac, build-mingw, test-documentation]
165+
needs: [build-ubuntu, build-ubuntu-prev, build-windows, build-mac, build-mingw, test-documentation, documentation]
145166
runs-on: ubuntu-latest
146167
if: success()
147168
outputs:
@@ -152,7 +173,7 @@ jobs:
152173

153174
# Dummy job to check if build-all-check was successful.
154175
build-all:
155-
needs: [build-ubuntu, build-ubuntu-prev, build-windows, build-mac, build-mingw, test-documentation, build-all-check]
176+
needs: [build-ubuntu, build-ubuntu-prev, build-windows, build-mac, build-mingw, test-documentation, documentation, build-all-check]
156177
runs-on: ubuntu-latest
157178
if: always()
158179
steps:
@@ -165,24 +186,3 @@ jobs:
165186
echo "Build failed"
166187
exit 1
167188
fi
168-
169-
# If everything is OK, publish documentation
170-
documentation:
171-
if: github.ref == 'refs/heads/master'
172-
needs: [build-ubuntu, build-ubuntu-prev, build-windows, build-mac, build-mingw]
173-
runs-on: ubuntu-latest
174-
steps:
175-
- name: checkout
176-
uses: actions/checkout@v3
177-
- name: bootstrap
178-
run: |
179-
sudo apt update
180-
dist/ubuntu/bootstrap.sh
181-
sudo apt install libegl1
182-
- name: build
183-
run: dist/ubuntu/build.sh -DLIBSTORED_DOCUMENTATION=ON -DLIBSTORED_PYLIBSTORED=ON -DLIBSTORED_HAVE_ZTH=ON
184-
- name: deploy
185-
uses: peaceiris/actions-gh-pages@v3
186-
with:
187-
github_token: ${{ secrets.GITHUB_TOKEN }}
188-
publish_dir: ./sphinx/_build/html

0 commit comments

Comments
 (0)