Skip to content

更新

更新 #63

Workflow file for this run

name: 部署文档
on:
push:
branches:
- main
jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 设置Node.js
uses: actions/setup-node@v3
- name: 设置yarn
run: yarn set version 4.0.2
- name: 安装依赖
run: yarn install
- name: 构建文档
run: yarn run docs:build
- name: 部署文档
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs/.vuepress/dist
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}