From c2c21ce9e3a465a0239638de91af98e750b8ee0d Mon Sep 17 00:00:00 2001 From: Siddharth Bhat Date: Sun, 20 Aug 2023 13:27:09 -0700 Subject: [PATCH] fix: don't deploy on PRs --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ca75e5b6..caee5fcb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,6 +53,9 @@ jobs: # Single deploy job since we're just deploying deploy: + # only build on `master` branch of the actual remote, NOT on PRs. + # this stops PRs from attempting to deploy GH pages and failing to do so. + if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}