Do not try to update github-pages on pull_request (#2711)

This commit is contained in:
Rafael Fontenelle 2024-10-01 18:25:15 -03:00 committed by GitHub
parent 4959c76c34
commit 92079b0e8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ jobs:
sphinx-build docs _build sphinx-build docs _build
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4 uses: peaceiris/actions-gh-pages@v4
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} if: ${{ github.event_name != 'pull_request' }}
with: with:
publish_branch: gh-pages publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}