diff --git a/tools/rapids-upload-wheels-to-s3 b/tools/rapids-upload-wheels-to-s3 index 9b35b39..2faf8d9 100755 --- a/tools/rapids-upload-wheels-to-s3 +++ b/tools/rapids-upload-wheels-to-s3 @@ -4,6 +4,12 @@ # 1) wheel path to tar up set -e +if [ "${CI:-false}" = "false" ]; then + rapids-echo-stderr "Packages from local builds cannot be uploaded to S3." + rapids-echo-stderr "Open a PR to have successful builds uploaded." + exit 0 +fi + # For legacy reasons, allow this script to be run without the pkg_type being the first arg pkg_name="$(rapids-package-name "wheel_python")" @@ -14,10 +20,4 @@ if [ "${pkg_type}" = "cpp" ] || [ "${pkg_type}" = "python" ]; then pkg_name="$(rapids-package-name "wheel_${pkg_type}")" fi -if [ "${CI:-false}" = "false" ]; then - rapids-echo-stderr "Packages from local builds cannot be uploaded to S3." - rapids-echo-stderr "Open a PR to have successful builds uploaded." - exit 0 -fi - rapids-upload-to-s3 "${pkg_name}" "$@"