Deploy Static Pages #496
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |