Skip to content

Docs

Docs #5

Workflow file for this run

name: Docs
on:
workflow_dispatch:
workflow_run:
workflows: [Release]
types:
- completed
env:
VOLTA_FEATURE_PNPM: 1
jobs:
deploy-docs:
name: Deploy docs
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: volta-cli/action@2d68418f32546fd191eb666e232b321d5726484d # v4
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: install dependencies
run: pnpm install
- name: generate docs
run: pnpm run --filter docs generate-and-move
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/docs/gh-pages