diff options
author | Matt Strapp <matt@mattstrapp.net> | 2023-10-20 18:08:06 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2023-10-20 20:10:39 -0500 |
commit | e32182ce32ad3b13a0fee43f2aa4f0905cf59a1f (patch) | |
tree | 86994e4d0ac740697f767b565cb8786828030bf5 | |
parent | uh (diff) | |
download | trinkets-e32182ce32ad3b13a0fee43f2aa4f0905cf59a1f.tar trinkets-e32182ce32ad3b13a0fee43f2aa4f0905cf59a1f.tar.gz trinkets-e32182ce32ad3b13a0fee43f2aa4f0905cf59a1f.tar.bz2 trinkets-e32182ce32ad3b13a0fee43f2aa4f0905cf59a1f.tar.lz trinkets-e32182ce32ad3b13a0fee43f2aa4f0905cf59a1f.tar.xz trinkets-e32182ce32ad3b13a0fee43f2aa4f0905cf59a1f.tar.zst trinkets-e32182ce32ad3b13a0fee43f2aa4f0905cf59a1f.zip |
e
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
-rw-r--r-- | .github/workflows/build.yaml (renamed from .github/workflows/deploy-to-pages.yaml) | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/.github/workflows/deploy-to-pages.yaml b/.github/workflows/build.yaml index 471b30e..97956f2 100644 --- a/.github/workflows/deploy-to-pages.yaml +++ b/.github/workflows/build.yaml @@ -1,12 +1,25 @@ -name: Deploy to GitHub Pages +name: Deploy SvelteKit page to GitHub Pages on: push: branches: - 'master' + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false jobs: - build_site: + build: runs-on: ubuntu-latest steps: - name: Checkout @@ -25,21 +38,18 @@ jobs: - name: Build the site run: pnpm -F website build - name: Upload Artifacts - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 with: # this should match the `pages` option in your adapter-static options path: 'app/build/' deploy: - needs: build_site + needs: build runs-on: ubuntu-latest - permissions: - pages: write - id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - name: Deploy id: deployment - uses: actions/deploy-pages@v1
\ No newline at end of file + uses: actions/deploy-pages@v2
\ No newline at end of file |