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,11 +31,11 @@ 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 }}
publish_dir: _build/ publish_dir: _build/
force_orphan: true force_orphan: true
enable_jekyll: false # This is required to preserve _static (and thus the theme) enable_jekyll: false # This is required to preserve _static (and thus the theme)
cname: archinstall.archlinux.page cname: archinstall.archlinux.page