Skip to content

feat: 更新发布脚本 #3

feat: 更新发布脚本

feat: 更新发布脚本 #3

Workflow file for this run

name: Deploy MkDocs to GitHub Pages
on:
push:
branches: [ main, master ]
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Deploy to gh-pages
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
mkdocs gh-deploy --force