diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index ea038dd314..173b3c9205 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -4,6 +4,9 @@ on: push: branches: - main + pull_request: + branches: + - main workflow_dispatch: @@ -42,11 +45,14 @@ jobs: working-directory: ./website run: yarn build - name: Setup Pages + if: github.event_name != 'pull_request' uses: actions/configure-pages@v1 - name: Upload artifact + if: github.event_name != 'pull_request' uses: actions/upload-pages-artifact@v1 with: path: website/build - name: Deploy to GitHub Pages + if: github.event_name != 'pull_request' id: deployment uses: actions/deploy-pages@v1