Skip to content

fix

fix #32

Workflow file for this run

name: deploy docs
on:
push:
branches:
- main
# 手动触发部署
workflow_dispatch:
permissions:
contents: write
jobs:
deploy-main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# "最近更新时间"等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0
- name: 安装 pnpm
uses: pnpm/action-setup@v2
with:
run_install: false
version: 8
- name: 设置 Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
- name: 安装依赖
run: pnpm install --no-frozen-lockfile
- name: 构建文档
run: pnpm run docs:build
- name: 部署文档
uses: JamesIves/github-pages-deploy-action@v4
with:
FOLDER: docs/.vuepress/dist
BRANCH: gh-pages