diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 079d236..9223951 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,6 +5,8 @@ on: # Using a different branch name? Replace `main` with your branch’s name push: branches: [ main ] + pull_request: + branches: [ main ] # Allows you to run this workflow manually from the Actions tab on GitHub. workflow_dispatch: @@ -28,6 +30,7 @@ jobs: package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional) deploy: + if: github.event_name == 'push' && github.ref == 'refs/heads/main' needs: build runs-on: ubuntu-latest environment: