Skip to content

notes

notes #3

Workflow file for this run

name: Deploy MkDocs
on:
push:
branches:
- main # 设置触发部署的分支
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
run: |
pip install mkdocs-material
pip install mkdocs-glightbox
pip install mkdocs-statistics-plugin
pip install mkdocs-heti-plugin
pip install mkdocs-include-dir-to-nav
- name: Deploy
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
mkdocs gh-deploy --force