Skip to content

Commit 8494561

Browse files
committed
Debug repo selection
1 parent 2354014 commit 8494561

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

entrypoint.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ python setup.py sdist bdist_wheel
4242

4343
echo "---------------- 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

4750
if [[ ${VERIFY_METADATA} != "false" ]] ; then
4851
twine check dist/*
@@ -57,4 +60,4 @@ if [[ ${VERBOSE} != "false" ]] ; then
5760
EXTRA_ARGS="--verbose ${EXTRA_ARGS}"
5861
fi
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}

0 commit comments

Comments
 (0)