diff --git a/ci/release/pypi_uploader.sh b/ci/release/pypi_uploader.sh index 178d8d65..56ff272c 100644 --- a/ci/release/pypi_uploader.sh +++ b/ci/release/pypi_uploader.sh @@ -23,16 +23,13 @@ if [ "${COMMIT_HASH}" != "master" ]; then return 0 fi -for f in "${WORKSPACE}"/atacworks/atacworks_wheel/*.whl; do +for f in "${WORKSPACE}"/atacworks_wheel/*.whl; do if [ ! -e "${f}" ]; then echo "atacworks Whl file does not exist" exit 1 else conda install -c conda-forge twine - # Change .whl package name to support PyPI upload - MODIFIED_WHL_NAME=$(dirname ${f})/$(basename "${f}" | sed -r "s/(.*-.+-.+)-.+-.+.whl/\1-none-any.whl/") - mv "${f}" "${MODIFIED_WHL_NAME}" - echo "File name ${f} was changed into ${MODIFIED_WHL_NAME}" + echo "Uploading file name ${f} to PYPI" # Perform Upload python3 -m twine upload --skip-existing "${WORKSPACE}"/atacworks_wheel/* fi