feat: 新页面认领issues Template #6
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: 同步至 Deploy 分支 | |
on: | |
push: | |
branches: | |
- main | |
#手动触发 | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# 获取源码 | |
- name: 迁出代码 | |
uses: actions/checkout@master | |
- name: 设置环境 | |
uses: actions/setup-python@master | |
with: | |
python-version: 3.x | |
- name: 安装Mkdocs Material | |
run: | | |
pip install mkdocs-material | |
pip install mkdocs-git-committers-plugin-2 | |
- name: 渲染Html | |
run: | | |
mkdocs build | |
- name: 部署到 Deploy 分支 # 部署 | |
uses: JamesIves/[email protected] | |
with: | |
branch: deploy # 部署后提交到的分支 | |
folder: site # 打包好的目录名称 |