v0.14.1 🌈 #117
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: API documentation | |
on: | |
release: | |
types: | |
- published | |
concurrency: | |
group: docs-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'write' | |
actions: 'write' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: eshwen/adrenaline/[email protected] | |
with: | |
python-version: '3.10' | |
install-dev-deps: true | |
- name: Get version number | |
uses: nowsprinting/check-version-format-action@v4 | |
id: version | |
with: | |
prefix: 'v' | |
- name: Build docs | |
run: | | |
git fetch origin gh-pages --depth=1 | |
git config user.name github-actions # Required for Mike | |
git config user.email [email protected] | |
poetry run mike deploy --update-aliases --push ${{ steps.version.outputs.major_without_prefix }}.${{ steps.version.outputs.minor }} latest |