Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 4d18e41

Browse files
committed
fix deployment
1 parent 9a3c465 commit 4d18e41

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/on-push.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ jobs:
143143
make docs-build
144144
- name: Deploy documentation
145145
uses: peaceiris/actions-gh-pages@v4
146-
if: github.ref == 'refs/heads/main'
146+
if: |
147+
github.event_name == 'push' &&
148+
startsWith(github.ref, 'refs/tags')
147149
with:
148150
github_token: ${{ secrets.GITHUB_TOKEN }}
149151
publish_dir: ./docs/_build/html/
@@ -225,7 +227,8 @@ jobs:
225227
runs-on: ubuntu-latest
226228
needs: distribution
227229
if: |
228-
github.ref == 'refs/heads/main' &&
230+
always() && true &&
231+
needs.distribution.result == 'success' &&
229232
github.event_name == 'push' &&
230233
startsWith(github.ref, 'refs/tags')
231234
environment:

0 commit comments

Comments
 (0)