Publish docs via GitHub Pages on release #33
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 docs via GitHub Pages on release | |
on: | |
workflow_run: | |
workflows: ["Release"] | |
types: | |
- completed | |
env: | |
PYTHON_VERSION: 3.12.x | |
POETRY_VERSION: 1.8.5 | |
jobs: | |
documentation: | |
name: Build documentation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python runtime | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Python Poetry Action | |
uses: abatilo/actions-poetry@v4.0.0 | |
with: | |
poetry-version: ${{ env.POETRY_VERSION }} | |
- name: View poetry version | |
run: poetry --version | |
- name: Install project dependencies | |
run: poetry install | |
- name: Deploy documentation | |
env: | |
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }} | |
run: | | |
poetry run mkdocs gh-deploy --force | |
poetry run mkdocs --version |