初始化设置并翻译完第一章 #1
This file contains 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: make_docs | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the dev branch | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- uses: actions/cache@v3 | |
with: | |
key: mkdocs-material-${{ github.ref }} | |
path: .cache | |
restore-keys: | | |
mkdocs-material- | |
- run: pip install mkdocs-material | |
- run: pip install mkdocs-jupyter | |
- run: pip install mkdocs-git-revision-date-localized-plugin | |
- run: mkdocs gh-deploy --force |