Skip to content

Deploy Static Pages #497

Deploy Static Pages

Deploy Static Pages #497

Workflow file for this run

name: Deploy Static Pages
on:
workflow_dispatch:
workflow_run:
workflows: ["Continuous Integration"]
branches: [main]
types:
- completed
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: latest
cache: yarn
- run: yarn install --immutable
- run: yarn compile
- run: yarn docs
- run: mkdir dist && mv docs dist/
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: "dist"
- uses: actions/deploy-pages@v4
id: deployment