File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 7
7
branches :
8
8
- main
9
9
- v2
10
+ workflow_dispatch :
11
+ inputs :
12
+ version :
13
+ description : ' Version to build docs for (1, 2, main, or release)'
14
+ required : true
15
+ default : ' main'
16
+ type : choice
17
+ options :
18
+ - main
19
+ - ' 2'
20
+ - ' 1'
21
+ - release
10
22
11
23
env :
12
24
UV_LOCKED : 1
47
59
run : uv run python tools/build_docs.py docs-build --version 2
48
60
if : github.event_name == 'push' && github.ref == 'refs/heads/v2'
49
61
62
+ - name : Build docs (manual trigger)
63
+ run : |
64
+ if [ "${{ inputs.version }}" == "release" ]; then
65
+ uv run python tools/build_docs.py docs-build
66
+ else
67
+ uv run python tools/build_docs.py docs-build --version ${{ inputs.version }}
68
+ fi
69
+ if : github.event_name == 'workflow_dispatch'
70
+
50
71
- name : Deploy
51
72
uses : JamesIves/github-pages-deploy-action@v4
52
73
with :
You can’t perform that action at this time.
0 commit comments