modified: 快捷修改运行环境和资源池 #639
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: Mkdocs Build | |
on: | |
push: | |
branches: [ "v1.20.x-lts", "v3.x", "v2.x" ] | |
workflow_dispatch: | |
jobs: | |
mike-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUBTOKEN }} | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements/requirements.txt | |
pip install mike==1.1.2 | |
python -m pip install --upgrade pip setuptools wheel | |
- name: Config Git | |
run: | | |
git config user.name "$(git log -n 1 --pretty=format:%an)" | |
git config user.email "$(git log -n 1 --pretty=format:%ae)" | |
- name: Build package | |
run: | | |
git fetch origin deploy:deploy | |
mike deploy --push --branch deploy --rebase ${{ github.ref_name }} |