Skip to content

Commit 68a2ec0

Browse files
committed
Add a docs building workflow.
1 parent 79792aa commit 68a2ec0

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: docs
2+
permissions:
3+
contents: write
4+
5+
on:
6+
push:
7+
tags:
8+
- "v*"
9+
10+
jobs:
11+
docs:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v6
16+
17+
- name: recovery tag information
18+
run: git fetch --tags --force
19+
20+
- uses: actions/setup-python@v6
21+
with:
22+
python-version: '3.14'
23+
cache: 'pip'
24+
25+
- name: install dependencies
26+
run: pip install '.[docs]'
27+
28+
- name: build docs
29+
run: mike deploy --push ${GITHUB_REF#refs/tags/} latest
30+
31+
- name: set default
32+
run: mike set-default --push latest

0 commit comments

Comments
 (0)