File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- master
6
- workflow_dispatch : {}
6
+ workflow_dispatch : { }
7
7
8
8
jobs :
9
9
find_version :
21
21
- name : Get version
22
22
id : get-version
23
23
run : python -c 'import splunklib; print("::set-output name=version::%s" % splunklib.__version__)'
24
+ - name : Install tox
25
+ run : pip install tox
26
+ - name : Generate API docs
27
+ run : |
28
+ rm -rf ./docs/_build
29
+ tox -e docs
30
+ cd ./docs/_build/html && zip -r ../docs_html.zip . -x ".*" -x "__MACOSX"
24
31
tag_version :
25
32
needs : find_version
26
33
name : Tag Version
32
39
repo-token : ${{ secrets.GITHUB_TOKEN }}
33
40
tag : ${{ needs.find_version.outputs.version }}
34
41
release :
35
- needs : [find_version, tag_version]
42
+ needs : [ find_version, tag_version ]
36
43
name : Create Release
37
44
runs-on : ubuntu-latest
38
45
steps :
52
59
**TODO: Insert CHANGELOG.md contents here.**
53
60
draft : false
54
61
prerelease : false
62
+ - name : Upload Artifact
63
+ uses : actions/upload-artifact@v3
64
+ with :
65
+ name : apidocs
66
+ path : docs/_build/docs_html.zip
55
67
publish :
56
68
needs : release
57
69
name : Deploy Release to PyPI
Original file line number Diff line number Diff line change 1
1
name : Python CI
2
2
3
3
on :
4
- [push, pull_request]
4
+ [ push, pull_request ]
5
5
6
6
jobs :
7
7
build :
11
11
matrix :
12
12
os :
13
13
- ubuntu-latest
14
- python : [2.7, 3.7]
14
+ python : [ 2.7, 3.7 ]
15
15
splunk-version :
16
16
- " 8.0"
17
17
- " latest"
You can’t perform that action at this time.
0 commit comments