Build MKDocs #4191
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |