Skip to content

Commit

Permalink
add publish ym;
Browse files Browse the repository at this point in the history
  • Loading branch information
tracy626 committed Sep 19, 2024
1 parent e95db89 commit 665be35
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mkdocs-site/.github/workflows/PublishMySite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: tracy626
on: # 在什么时候触发工作流
push: # 在从本地main分支被push到GitHub仓库时
branches:
- main
pull_request: # 在main分支合并别人提的pr时
branches:
- main
jobs: # 工作流的具体内容
deploy:
runs-on: ubuntu-latest # 创建一个新的云端虚拟机 使用最新Ubuntu系统
steps:
- uses: actions/checkout@v2 # 先checkout到main分支
- uses: actions/setup-python@v2 # 再安装Python3和相关环境
with:
python-version: 3.x
- run: pip install mkdocs-material # 使用pip包管理工具安装mkdocs-material
- run: mkdocs gh-deploy --force # 使用mkdocs-material部署gh-pages分支

0 comments on commit 665be35

Please sign in to comment.