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