Skip to content

1.3.24 代码重构 #134

1.3.24 代码重构

1.3.24 代码重构 #134

Workflow file for this run

name: Deploy docs
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.4.0
run_install: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: docs/package.json
cache: pnpm
cache-dependency-path: docs/pnpm-lock.yaml
- name: Build documentation site
run: cd docs; pnpm docs:build
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: docs/.vuepress/dist
fqdn: windea.icu
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}