-
Notifications
You must be signed in to change notification settings - Fork 311
57 lines (46 loc) · 1.19 KB
/
docs.yaml
File metadata and controls
57 lines (46 loc) · 1.19 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build Documentation
on:
push:
branches:
- main
paths:
- "doc/**"
- "pyproject.toml"
pull_request:
paths:
- "doc/**"
workflow_dispatch:
permissions: {}
jobs:
build-docs:
name: Build Sphinx docs
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
READTHEDOCS: "True"
steps:
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up uv
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
with:
version: ">=0.9.11,<0.10.0"
python-version: "3.12"
prune-cache: false
- name: Install pandoc
run: sudo apt-get update && sudo apt-get install -y pandoc
- name: Install dependencies
run: uv sync --group=docs
- name: Build HTML docs
run: |
cd doc
uv run make html
- name: Upload built docs
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: yt-docs-html
path: doc/build/html/