aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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