aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-01-23 11:04:41 -0600
committerMatt Strapp <matt@mattstrapp.net>2024-01-23 11:07:17 -0600
commitaac4efcf51dcf1ff34aef9c8e2e19d82679a4ccb (patch)
tree9520d3c585ddcb6b2485f31947bb16617fbdfde3 /.github
parentUpdate to SvelteKit 2 (diff)
downloadtrinkets-aac4efcf51dcf1ff34aef9c8e2e19d82679a4ccb.tar
trinkets-aac4efcf51dcf1ff34aef9c8e2e19d82679a4ccb.tar.gz
trinkets-aac4efcf51dcf1ff34aef9c8e2e19d82679a4ccb.tar.bz2
trinkets-aac4efcf51dcf1ff34aef9c8e2e19d82679a4ccb.tar.lz
trinkets-aac4efcf51dcf1ff34aef9c8e2e19d82679a4ccb.tar.xz
trinkets-aac4efcf51dcf1ff34aef9c8e2e19d82679a4ccb.tar.zst
trinkets-aac4efcf51dcf1ff34aef9c8e2e19d82679a4ccb.zip
Run build on PR too
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yaml6
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: