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

Commit

Permalink
fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Sep 23, 2024
1 parent 9a3c465 commit 4d18e41
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ jobs:
make docs-build
- name: Deploy documentation
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
if: |
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags')
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html/
Expand Down Expand Up @@ -225,7 +227,8 @@ jobs:
runs-on: ubuntu-latest
needs: distribution
if: |
github.ref == 'refs/heads/main' &&
always() && true &&
needs.distribution.result == 'success' &&
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags')
environment:
Expand Down

0 comments on commit 4d18e41

Please sign in to comment.