Skip to content

Build MKDocs

Build MKDocs #4191

name: Build MKDocs
on:
workflow_dispatch:
schedule:
- cron: '0 */2 * * *'
permissions:
pull-requests: write
contents: write
repository-projects: write
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: 🌈 安装Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: 🚁 安装Python依赖
run: |
cd ./mkdocs_builder
pip install -r ./requirements.txt
- name: ✅ 检查主仓库更新状况并部署
run: |
cd ./mkdocs_builder
chmod +x update_and_deploy.sh
bash ./update_and_deploy.sh ${{ secrets.TOKEN }}
env:
TOKEN: ${{ secrets.TOKEN }}