Skip to content

ci: fully revamp the python publish workflow #27

ci: fully revamp the python publish workflow

ci: fully revamp the python publish workflow #27

Workflow file for this run

name: Deploy docs
on:
workflow_call:
push:
branches:
- main
jobs:
docs:
# Create latest docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch all commits/branches
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Install documentation dependencies
run: |
pip install -r docs/requirements.txt
- name: Setup doc deploy
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Deploy docs with mike 🚀
run: |
mkdocs build
mike deploy --push --update-aliases latest
- name: Store the docs
uses: actions/upload-artifact@v4
with:
name: latest-docs
path: site/