From 92079b0e8e73b1b90c4d45828b8fa4218abc1021 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Tue, 1 Oct 2024 18:25:15 -0300 Subject: [PATCH] Do not try to update github-pages on pull_request (#2711) --- .github/workflows/github-pages.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 65255fd6..5a48dda1 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -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 \ No newline at end of file + cname: archinstall.archlinux.page