From 2070acf646d9ae8ab998267a7aafaf33ce75251b Mon Sep 17 00:00:00 2001 From: Nathan Heskew Date: Fri, 10 Oct 2025 19:35:32 -0700 Subject: [PATCH] Update deploy condition to explicitly limit to the main branch. Environment protection limits to main but let's not even try. --- .github/workflows/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index b8f1dc06..7e49a0ff 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -80,8 +80,8 @@ jobs: needs: build name: Deploy to GitHub Pages runs-on: ubuntu-latest - # Only deploy on push to main or manual trigger, not on PRs - if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch' + # Only deploy on push to main or manual trigger from main branch, not on PRs + if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') permissions: pages: write