feat: 升级文档部署脚本 #36
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
# 官网:https://github.com/marketplace/actions/toc-generator | |
name: TOC Generator | |
on: | |
# 每当 push 到 master 分支时触发部署 | |
push: | |
branches: [master] | |
jobs: | |
generateTOC: | |
name: TOC Generator | |
runs-on: ubuntu-latest | |
steps: | |
- uses: technote-space/toc-generator@v4 | |
with: | |
TARGET_PATHS: '*.md' | |
COMMIT_MESSAGE: 'chore(docs): update *.md 目录' | |
TOC_TITLE: '**目录**' |