From aac4efcf51dcf1ff34aef9c8e2e19d82679a4ccb Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 23 Jan 2024 11:04:41 -0600 Subject: Run build on PR too Signed-off-by: Matt Strapp --- .github/workflows/build.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.github/workflows/build.yaml') diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 97956f2..8df657e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,8 +2,7 @@ name: Deploy SvelteKit page to GitHub Pages on: push: - branches: - - 'master' + pull_request: workflow_dispatch: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages @@ -37,13 +36,16 @@ jobs: run: pnpm -r install - name: Build the site run: pnpm -F website build + - name: Upload Artifacts + if: ${{ github.ref == 'refs/heads/master' }} uses: actions/upload-pages-artifact@v2 with: # this should match the `pages` option in your adapter-static options path: 'app/build/' deploy: + if: ${{ github.ref == 'refs/heads/master' }} needs: build runs-on: ubuntu-latest environment: -- cgit v1.2.3