diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yaml | 6 |
1 files changed, 4 insertions, 2 deletions
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: |