Skip to content

Deploy to GitHub Pages #164

Deploy to GitHub Pages

Deploy to GitHub Pages #164

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_run:
workflows: [CI]
types: [completed]
branches: [master]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.event.workflow_run.head_sha }}
- uses: actions/setup-node@v7
with:
node-version: 20
cache: npm
- run: npm ci --legacy-peer-deps
- run: npm run build
- uses: actions/upload-pages-artifact@v3
with:
path: build/
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4