File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
tags :
5
5
- " v*.*.*"
6
- workflow_dispatch :
6
+ pull_request :
7
7
concurrency :
8
8
group : " pages"
9
9
cancel-in-progress : true
33
33
with :
34
34
path : docs/build/html/
35
35
deploy :
36
+ if : startsWith(github.ref, 'refs/tags/v')
36
37
needs : build
37
38
permissions :
38
39
pages : write
Original file line number Diff line number Diff line change 3
3
4
4
# You can set these variables from the command line.
5
5
SPHINXOPTS =
6
- SPHINXBUILD = sphinx-build
6
+ SPHINXBUILD = poetry run sphinx-build
7
+ SPHINXAPIDOC = poetry run sphinx-apidoc
7
8
PAPER =
8
9
BUILDDIR = build
9
10
@@ -50,12 +51,12 @@ clean:
50
51
51
52
.PHONY : sphinx-apidoc
52
53
sphinx-apidoc :
53
- sphinx-apidoc -f -o source/modules -M " .." " ../setup.py" " ../sample.py" " ../tests"
54
+ $( SPHINXAPIDOC ) -f -o source/modules -M " .." " ../setup.py" " ../sample.py" " ../tests"
54
55
rm source/modules/modules.rst
55
56
56
57
.PHONY : sphinx-apidoc-test
57
58
sphinx-apidoc-test :
58
- sphinx-apidoc -f -o source/modules -M " ../tests/"
59
+ $( SPHINXAPIDOC ) -f -o source/modules -M " ../tests/"
59
60
rm source/modules/modules.rst
60
61
61
62
.PHONY : html
You can’t perform that action at this time.
0 commit comments