Skip to content

feat: disabled & visible 支持 boolean 类型可控配置 #13

feat: disabled & visible 支持 boolean 类型可控配置

feat: disabled & visible 支持 boolean 类型可控配置 #13

Workflow file for this run

# 项目名
name: dumi book docs
# 只有在 main 分支发生 push 事件时触发
on:
push:
branches:
- main
# 工作流
jobs:
build-and-deploy:
runs-on: ubuntu-latest # 运行环境
steps:
# 拉代码
- name: Checkout code
uses: actions/checkout@v1
# 下载node,我这里指定了20.x,这个版本可随意,高于dumi规定的node版本即可
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 20.x
# 打包代码
- name: Build Project
run: |
yarn
cd example
yarn
yarn doc:build
# 部署到github
- name: Deploy to Github
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
branch: docs # 打包的内容放到 docs 分支下
folder: docs