Skip to content

release: v0.0.2

release: v0.0.2 #14

Workflow file for this run

name: Docs
on:
push:
branches: [ "master" ]
tags: [ "v*.*.*" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ startsWith(github.event.head_commit.message, 'docs') || github.ref_type == 'tag' || github.event_name == 'workflow_dispatch' }}
permissions:
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: false
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- name: Use pnpm
uses: pnpm/action-setup@v2
with:
version: latest
run_install: false
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'pnpm'
- run: pnpm install
- run: pnpm run build:docs
- name: Upload build artifact
uses: actions/upload-pages-artifact@v3
with:
name: build
path: docs/
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
id: deployment
with:
artifact_name: build