Skip to content

Commit

Permalink
fix: allow deploying docs for other triggers than push (otherwise it …
Browse files Browse the repository at this point in the history
…would not be deployed on successfull PRs)
  • Loading branch information
Stefan Strömer committed Jun 19, 2024
1 parent 629161c commit 9deefa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
sphinx-build docs docs/_build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 9deefa6

Please sign in to comment.