File tree Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ orbs:
146
146
gh_token : <<parameters.gh_token>>
147
147
148
148
jobs :
149
- publish-gh :
149
+ publish-pypi :
150
150
docker :
151
151
- image : circleci/python:3.7
152
152
steps :
@@ -155,15 +155,13 @@ jobs:
155
155
- attach_workspace :
156
156
at : /tmp/workspace
157
157
- checkout
158
- - go/install
159
158
- run :
160
- name : " Publish on GitHub "
159
+ name : " Publish on PyPI "
161
160
command : |
162
161
PATH=$PATH:/usr/local/go/bin
163
- PACKAGE=$(ls /tmp/workspace/build/package/splunkbase/*)
164
- source /tmp/workspace/build/VERSION
165
- go get -v -u github.com/tcnksm/ghr
166
- $HOME/go/bin/ghr -t ${GH_PAT} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${ISPRE} -delete ${VERSION} $PACKAGE
162
+ pip install twine
163
+ python setup.py sdist bdist_wheel
164
+ twine upload dist/*
167
165
168
166
workflows :
169
167
build :
@@ -265,13 +263,12 @@ workflows:
265
263
gh_token : ${GH_PAT}
266
264
requires :
267
265
- approval-tag-final-patch
268
- # publish:
269
- # jobs:
270
- # - publish-gh:
271
- # requires:
272
- # - package
273
- # filters:
274
- # branches:
275
- # ignore: /.*/
276
- # tags:
277
- # only: /^v\d*\.\d*\.\d*.*$/
266
+
267
+ publish :
268
+ jobs :
269
+ - publish-pypi :
270
+ filters :
271
+ branches :
272
+ ignore : /.*/
273
+ tags :
274
+ only : /^v\d*\.\d*\.\d*.*$/
You can’t perform that action at this time.
0 commit comments