feat: disabled & visible 支持 boolean 类型可控配置 #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 项目名 | |
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 |