Skip to content

fix action

fix action #129

Workflow file for this run

name: Deploy docs
on:
push:
paths: ['src/**', 'test/**', 'tsconfig.json', '.github/workflows/docs.yml', 'pnpm-lock.yaml', 'vite.config.ts', 'package.json']
branches:
- main
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Setup pnpm
uses: pnpm/[email protected]
- run: pnpm install --frozen-lockfile
- run: pnpm docgen
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'docs'
deploy:
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2