diff --git a/tensorflow/tools/ci_build/nightly_release/macos/cpu_py36.sh b/tensorflow/tools/ci_build/nightly_release/macos/cpu_py36.sh index 975aaee187d..9567eb72a04 100644 --- a/tensorflow/tools/ci_build/nightly_release/macos/cpu_py36.sh +++ b/tensorflow/tools/ci_build/nightly_release/macos/cpu_py36.sh @@ -57,6 +57,7 @@ for f in $(ls pip_pkg/tf_nightly*dev*macosx*.whl); do # Upload the PIP package if whl test passes. if [ ${RETVAL} -eq 0 ]; then echo "Basic PIP test PASSED, Uploading package: ${f}" + python -m pip install twine python -m twine upload -r pypi-warehouse "${f}" else echo "Basic PIP test FAILED, will not upload ${f} package" diff --git a/tensorflow/tools/ci_build/nightly_release/macos/cpu_py37.sh b/tensorflow/tools/ci_build/nightly_release/macos/cpu_py37.sh index 3c4d1b051e0..bfb0774febf 100644 --- a/tensorflow/tools/ci_build/nightly_release/macos/cpu_py37.sh +++ b/tensorflow/tools/ci_build/nightly_release/macos/cpu_py37.sh @@ -57,6 +57,7 @@ for f in $(ls pip_pkg/tf_nightly*dev*macosx*.whl); do # Upload the PIP package if whl test passes. if [ ${RETVAL} -eq 0 ]; then echo "Basic PIP test PASSED, Uploading package: ${f}" + python -m pip install twine python -m twine upload -r pypi-warehouse "${f}" else echo "Basic PIP test FAILED, will not upload ${f} package" diff --git a/tensorflow/tools/ci_build/nightly_release/macos/cpu_py38.sh b/tensorflow/tools/ci_build/nightly_release/macos/cpu_py38.sh index e2ec3265196..c5f3df83d42 100644 --- a/tensorflow/tools/ci_build/nightly_release/macos/cpu_py38.sh +++ b/tensorflow/tools/ci_build/nightly_release/macos/cpu_py38.sh @@ -57,6 +57,7 @@ for f in $(ls pip_pkg/tf_nightly*dev*macosx*.whl); do # Upload the PIP package if whl test passes. if [ ${RETVAL} -eq 0 ]; then echo "Basic PIP test PASSED, Uploading package: ${f}" + python -m pip install twine python -m twine upload -r pypi-warehouse "${f}" else echo "Basic PIP test FAILED, will not upload ${f} package"