Do not try to update github-pages on pull_request (#2711)
This commit is contained in:
parent
4959c76c34
commit
92079b0e8e
|
|
@ -31,11 +31,11 @@ jobs:
|
|||
sphinx-build docs _build
|
||||
- name: Deploy to GitHub Pages
|
||||
uses: peaceiris/actions-gh-pages@v4
|
||||
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
with:
|
||||
publish_branch: gh-pages
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: _build/
|
||||
force_orphan: true
|
||||
enable_jekyll: false # This is required to preserve _static (and thus the theme)
|
||||
cname: archinstall.archlinux.page
|
||||
cname: archinstall.archlinux.page
|
||||
|
|
|
|||
Loading…
Reference in New Issue