YAML 47 lines
name: Pages
# Deploy the tutorial web app (tutorial/public/) to GitHub Pages as a static
# site. The page detects the missing transpile backend and degrades gracefully
# — reading chapters and loading examples into the editor work; live
# transpilation needs the local dev server (tutorial/, `npm start`).
on:
push:
branches: [main]
paths:
- 'tutorial/public/**'
- '.github/workflows/pages.yml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v6
- name: Configure Pages
uses: actions/configure-pages@v6
with:
enablement: true
- name: Upload tutorial site
uses: actions/upload-pages-artifact@v5
with:
path: tutorial/public
- name: Deploy
id: deployment
uses: actions/deploy-pages@v5