Skip to content

Delete trip-to-Xi'an.md #100

Delete trip-to-Xi'an.md

Delete trip-to-Xi'an.md #100

Workflow file for this run

name: publish site
on: # 在什么时候触发工作流
push: # 在从本地 main 分支被 push 到 GitHub 仓库时
branches:
- main
pull_request: # 在 main 分支合并别人提的 PR 时
branches:
- main
jobs: # 工作流的具体内容
deploy:
runs-on: ubuntu-latest # 创建一个新的云端虚拟机,使用最新 Ubuntu 系统
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # 拉取完整的 Git 历史记录
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install mkdocs-material
pip install mkdocs-git-revision-date-localized-plugin
pip install mkdocs-git-committers-plugin-2 # 安装相关插件
- name: Deploy to GitHub Pages
env:
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.MKDOCS_GIT_COMMITTERS_APIKEY }}
run: mkdocs gh-deploy --force # 部署文档到 GitHub Pages