Skip to content

Deploy Static Pages #241

Deploy Static Pages

Deploy Static Pages #241

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@v3
- uses: actions/setup-node@v3.7.0
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@v3
- uses: actions/upload-pages-artifact@v2
with:
path: "dist"
- uses: actions/deploy-pages@v2
id: deployment