From 081b6b3791e6c87e1652bc88a424c7742a8e4084 Mon Sep 17 00:00:00 2001 From: Brad Christie Date: Wed, 3 Jul 2024 16:14:15 -0400 Subject: [PATCH] Auto-run on master branch --- .github/workflows/nextjs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index c5e7607..274c3fb 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -7,7 +7,7 @@ name: Deploy Next.js site to GH-Pages on: # Runs on pushes targeting the default branch push: - branches: ["main"] + branches: ["master"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -82,6 +82,7 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build + if: github.ref == 'refs/heads/master' steps: - name: Deploy to GitHub Pages id: deployment