refactor(version): version v1.5 #69
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.*" ] | |
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 | |
- 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 v1.x | |
mike set-default --push --branch deploy --rebase v1.x |