Skip to content

Commit 4a0e670

Browse files
Merge pull request #440 from splunk/DVPL-10793
Github release workflow modified
2 parents c163daf + 0038597 commit 4a0e670

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches:
55
- master
6-
workflow_dispatch: {}
6+
workflow_dispatch: { }
77

88
jobs:
99
find_version:
@@ -21,6 +21,13 @@ jobs:
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
@@ -32,7 +39,7 @@ jobs:
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:
@@ -52,6 +59,11 @@ jobs:
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

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Python CI
22

33
on:
4-
[push, pull_request]
4+
[ push, pull_request ]
55

66
jobs:
77
build:
@@ -11,7 +11,7 @@ jobs:
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"

0 commit comments

Comments
 (0)