Skip to content

fix: modernize project structure and fix path output (#7) #1

fix: modernize project structure and fix path output (#7)

fix: modernize project structure and fix path output (#7) #1

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- main
- dev
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch all history for git info
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
- name: Install dependencies
run: uv sync --extra docs
- name: Build documentation
run: uv run mkdocs build --strict
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./site
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
# Temporarily allow deployment from dev branch for testing
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4.0.5