From 27e40fcfe542552ccf28224b537b721e5130e6b4 Mon Sep 17 00:00:00 2001 From: "Peter Schilling (aider)" Date: Sun, 1 Sep 2024 07:29:32 -0700 Subject: [PATCH] aider: build: Add condition to deploy only on 'main' branch --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 776b942..395a778 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,6 +51,7 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' steps: - name: Deploy to GitHub Pages id: deployment