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