Skip to content

ensure ci checkout incl tags for package version in html render of sp… #6

ensure ci checkout incl tags for package version in html render of sp…

ensure ci checkout incl tags for package version in html render of sp… #6

Workflow file for this run

name: docs
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# include tags to ensure that scm info is available so we get the correct version in the docs
fetch-depth: 0
fetch-tags: true
- name: Setup uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: uv sync --group docs
- name: Generate spec docs
run: uv run python docs/scripts/generate_spec_docs.py
- name: Build site
run: uv run mkdocs build --strict
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: site
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4