Skip to content

Docs

Docs #5

Workflow file for this run

name: Docs
on:
workflow_run:
workflows: [CI]
branches: [main]
types: [completed]
workflow_dispatch:
concurrency:
group: "pages"
cancel-in-progress: false
permissions:
contents: write
pages: write
id-token: write
jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm doc
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Build documentation
commit_user_name: Docs Bot
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2