From 92c6754baf7881f392e5b696a2ceab9afc0921bb Mon Sep 17 00:00:00 2001 From: Ian Candy Date: Wed, 6 Mar 2024 16:12:14 -0500 Subject: [PATCH] Run build step on PR Trying again with what I believe is correct syntax --- .github/workflows/nextjs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index b55fe68..8a5149a 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -12,6 +12,9 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: + # Build step runs on each pull request + pull_request: + # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read @@ -104,6 +107,7 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest + if: ${{ github.event_name != 'pull_request' }} needs: build steps: - name: Deploy to GitHub Pages