Skip to content

Deploy docs to GitHub Pages #12

Deploy docs to GitHub Pages

Deploy docs to GitHub Pages #12

Workflow file for this run

name: Deploy docs to GitHub Pages
on:
push:
branches: ["master"]
paths:
- docs/**
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
defaults:
run:
shell: bash
working-directory: docs
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install -g pnpm
- run: pnpm install
working-directory: .
- run: pnpm install
- run: pnpm build
- uses: actions/upload-pages-artifact@v3
with:
path: docs/build
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- id: deployment
uses: actions/deploy-pages@v4