File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ inputs:
1818 upload_repo :
1919 description : Repo to upload to with twine, defaults to main PyPI repo
2020 required : false
21- defaults : ' https://pypi.org/'
2221 verify_metadata :
2322 description : Verify build metadata before publication, defaults to false
2423 required : false
Original file line number Diff line number Diff line change @@ -42,7 +42,10 @@ python setup.py sdist bdist_wheel
4242
4343echo " ---------------- PUBLISH PACKAGE ----------------"
4444
45- echo " -------- Using repository: ${UPLOAD_REPO} "
45+ if [[ -z " ${UPLOAD_REPO} " ]]; then
46+ EXTRA_ARGS=" --repository-url ${UPLOAD_REPO} ${EXTRA_ARGS} "
47+ echo " -------- Using repository: ${UPLOAD_REPO} "
48+ fi
4649
4750if [[ ${VERIFY_METADATA} != " false" ]] ; then
4851 twine check dist/*
@@ -57,4 +60,4 @@ if [[ ${VERBOSE} != "false" ]] ; then
5760 EXTRA_ARGS=" --verbose ${EXTRA_ARGS} "
5861fi
5962
60- python -m twine upload --repository-url ${UPLOAD_REPO} dist/* -u ${TWINE_USERNAME} -p ${TWINE_PASSWORD} ${EXTRA_ARGS}
63+ python -m twine upload dist/* -u ${TWINE_USERNAME} -p ${TWINE_PASSWORD} ${EXTRA_ARGS}
You can’t perform that action at this time.
0 commit comments