Skip to content

ci: add mkdocs action for building and deployment #2

ci: add mkdocs action for building and deployment

ci: add mkdocs action for building and deployment #2

Workflow file for this run

name: docs
on:
push:
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.26"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install dependencies
run: uv sync --dev
- name: Build MkDocs
run: uv run mkdocs build --strict
- name: Deploy MkDocs
if: github.ref == 'refs/heads/main'
run: uv run mkdocs gh-deploy --force