v0.1.12 #21
Workflow file for this run
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: Publish Release Documentation | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
name: Publish Release Documentation | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: 'true' | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
- name: Install Dependencies | |
run: | | |
pip install --disable-pip-version-check -r mkdocs_requirements.txt | |
- name: Configure Git | |
run: | | |
git config --local user.name "Doc Deploy Bot" | |
git config --local user.email "[email protected]" | |
- name: mike deploy new version | |
env: | |
VERSION: ${{ github.event.release.tag_name }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
mike deploy --push --update-aliases "$VERSION" "latest" | |
mike set-default --push latest |