diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c00ce7b..122db4a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,6 +3,8 @@ name: Deploy to GitHub Pages on: push: branches: [main] + pull_request: + branches: [main] workflow_dispatch: permissions: @@ -25,13 +27,16 @@ jobs: uses: actions/checkout@v4 - name: Setup Pages + if: github.event_name != 'pull_request' uses: actions/configure-pages@v4 - name: Upload artifact + if: github.event_name != 'pull_request' uses: actions/upload-pages-artifact@v3 with: path: . - name: Deploy to GitHub Pages + if: github.event_name != 'pull_request' id: deployment uses: actions/deploy-pages@v4