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:
146146 gh_token : <<parameters.gh_token>>
147147
148148jobs :
149- publish-gh :
149+ publish-pypi :
150150 docker :
151151 - image : circleci/python:3.7
152152 steps :
@@ -155,15 +155,13 @@ jobs:
155155 - attach_workspace :
156156 at : /tmp/workspace
157157 - checkout
158- - go/install
159158 - run :
160- name : " Publish on GitHub "
159+ name : " Publish on PyPI "
161160 command : |
162161 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/*
167165
168166workflows :
169167 build :
@@ -265,13 +263,12 @@ workflows:
265263 gh_token : ${GH_PAT}
266264 requires :
267265 - 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