Skip to content

Merge pull request #13 from koishijs/dragon-fish/refactor-website #1

Merge pull request #13 from koishijs/dragon-fish/refactor-website

Merge pull request #13 from koishijs/dragon-fish/refactor-website #1

Workflow file for this run

name: Publish Docs
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build docs
run: pnpm build:docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .docs_dist
publish_branch: docs