Do not try to update github-pages on pull_request (#2711)
This commit is contained in:
parent
4959c76c34
commit
92079b0e8e
|
|
@ -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 }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue