Release 0.2.0 (#26) #1
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: docs | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
# Build the documentation and upload the static HTML files as an artifact. | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- uses: abatilo/actions-poetry@v2 | |
- run: poetry install | |
- run: poetry run generate_docs | |
- run: git fetch origin gh-pages --depth=1 | |
- run: git config user.name ci-bot | |
- run: git config user.email ci-bot@example.com | |
- run: poetry run mike deploy ${{github.ref_name}} | |
- run: poetry run mike set-default ${{github.ref_name}} | |
- run: git checkout gh-pages | |
# Push changes to gh-pages branch | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages |