diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index b55fe68..e91191f 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -11,6 +11,7 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: + pull_request: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: @@ -105,6 +106,8 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build + # Don't deploy PRs, just test the build... + if: github.event_name != "pull_request" steps: - name: Deploy to GitHub Pages id: deployment