Skip to content

Add Pages deploy workflow + diagram restructure & fixes #1

Add Pages deploy workflow + diagram restructure & fixes

Add Pages deploy workflow + diagram restructure & fixes #1

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
# allow this workflow to publish to Pages
permissions:
contents: read
pages: write
id-token: write
# only one Pages deploy at a time; don't cancel an in-progress one
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
env:
# project pages live at /<repo>, so SvelteKit must build with that base
BASE_PATH: /${{ github.event.repository.name }}
run: npm run build
- name: Disable Jekyll (so _app/ assets are served)
run: touch build/.nojekyll
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: build
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4