File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ name: docs
6
6
7
7
on :
8
8
push :
9
+ tags :
10
+ - ' [0-9]+.[0-9]+.[0-9]+'
9
11
pull_request :
10
12
branches :
11
13
- main
14
16
- docs/**
15
17
- CHANGELOG.rst
16
18
- README.md
19
+ workflow_dispatch :
20
+ inputs :
21
+ tag :
22
+ required : true
17
23
18
24
jobs :
19
- docs :
25
+
26
+ build :
20
27
runs-on : ubuntu-latest
21
28
steps :
22
29
- uses : actions/setup-python@v4
23
30
with :
24
31
python-version : ' 3.11'
25
32
- uses : actions/checkout@v3
33
+ with :
34
+ ref : ${{ github.event.push.tag || github.event.inputs.tag }}
26
35
- run : python -m pip install .[docs]
27
36
- run : python -m sphinx docs/ build/docs/
37
+ - uses : actions/upload-pages-artifact@v2
38
+ with :
39
+ path : build/docs/
40
+
41
+ deploy :
42
+ needs : build
43
+ permissions :
44
+ pages : write
45
+ id-token : write
46
+ environment :
47
+ name : github-pages
48
+ runs-on : ubuntu-latest
49
+ if : ${{ github.event.push.tag || github.event.inputs.tag }}
50
+ steps :
51
+ - uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments