Skip to content

Deploy docs

Deploy docs #1

# Deploy documentation when push to main
name: Deploy docs
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[docs]
- name: Deploy docs
run: mkdocs gh-deploy --force