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 33 push :
44 branches :
55 - master
6- workflow_dispatch : {}
6+ workflow_dispatch : { }
77
88jobs :
99 find_version :
2121 - name : Get version
2222 id : get-version
2323 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"
2431 tag_version :
2532 needs : find_version
2633 name : Tag Version
3239 repo-token : ${{ secrets.GITHUB_TOKEN }}
3340 tag : ${{ needs.find_version.outputs.version }}
3441 release :
35- needs : [find_version, tag_version]
42+ needs : [ find_version, tag_version ]
3643 name : Create Release
3744 runs-on : ubuntu-latest
3845 steps :
5259 **TODO: Insert CHANGELOG.md contents here.**
5360 draft : false
5461 prerelease : false
62+ - name : Upload Artifact
63+ uses : actions/upload-artifact@v3
64+ with :
65+ name : apidocs
66+ path : docs/_build/docs_html.zip
5567 publish :
5668 needs : release
5769 name : Deploy Release to PyPI
Original file line number Diff line number Diff line change 11name : Python CI
22
33on :
4- [push, pull_request]
4+ [ push, pull_request ]
55
66jobs :
77 build :
1111 matrix :
1212 os :
1313 - ubuntu-latest
14- python : [2.7, 3.7]
14+ python : [ 2.7, 3.7 ]
1515 splunk-version :
1616 - " 8.0"
1717 - " latest"
You can’t perform that action at this time.
0 commit comments