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 Official Docs | |
on: | |
release: | |
types: [published] | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Setup doc deploy | |
run: | | |
git config --global user.name Promitor Bot | |
git config --global user.email [email protected] | |
- name: Publish new doc version | |
run: mike deploy --push --branch live-docs --update-aliases ${{ github.event.release.tag_name }} latest | |
- name: Change default latest version | |
run: mike set-default --push --branch live-docs latest |