-
Notifications
You must be signed in to change notification settings - Fork 4.2k
30 lines (28 loc) · 1016 Bytes
/
docs.yml
File metadata and controls
30 lines (28 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
on:
workflow_call:
inputs:
deploy:
type: boolean
description: "If true, the docs will be deployed."
default: false
python_version:
type: string
description: "Python version used for the docs environment."
default: "3.12"
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
UV_FROZEN: "1"
jobs:
run-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup-ubuntu-ci
with:
python_version: ${{ inputs.python_version }}
uv_sync_args: --frozen --group docs --all-extras --all-packages --no-group dev --no-group examples
- name: Build docs
run: uv run --no-sync mkdocs build --verbose --clean
- name: Build and push docs
if: inputs.deploy
run: uv run --no-sync mkdocs gh-deploy --force