Skip to content

Build and Deploy Docs #45

Build and Deploy Docs

Build and Deploy Docs #45

Workflow file for this run

name: Build and Deploy Docs
on:
workflow_dispatch:
inputs:
# trunk-ignore(checkov/CKV_GHA_7)
version:
description: Version to publish
required: true
type: string
concurrency:
group: pages
cancel-in-progress: true
permissions:
contents: write
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: uv.lock
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: .python-version
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Set Git user
run: |
git config --global user.name ${{ secrets.GIT_NAME }}
git config --global user.email ${{ secrets.GIT_EMAIL }}
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
- name: Build the documentation
run: uv run mike deploy --push ${{ github.event.inputs.version }} latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}