Skip to content

ci: Add GH workflow to build app & deploy to GH Pages; Update demo link to point at GH Pages deployment. #1

ci: Add GH workflow to build app & deploy to GH Pages; Update demo link to point at GH Pages deployment.

ci: Add GH workflow to build app & deploy to GH Pages; Update demo link to point at GH Pages deployment. #1

name: "Deploy to GitHub Pages"
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: "Set up Node.js"
uses: "actions/setup-node@v4"
with:
node-version: "22"
- run: "npm install"
- run: "npm run build"
- name: "Upload static files as artifact"
uses: "actions/upload-pages-artifact@v3"
with:
path: "./dist"
deploy:
needs: "build"
permissions:
# to deploy to Pages

Check failure on line 30 in .github/workflows/deploy-gh-pages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-gh-pages.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
pages: "write"
# to verify the deployment originates from
id-token: "write" an app
runs-on: "ubuntu-latest"
environment:
name: "github-pages"
url: "${{steps.deployment.outputs.page_url}}"
steps:
- name: "Deploy to GitHub Pages"
uses: "actions/deploy-pages@v4"