Skip to content

Commit

Permalink
do not exit when upload is called locally
Browse files Browse the repository at this point in the history
  • Loading branch information
divyegala committed Jul 17, 2023
1 parent d914aa2 commit e3a1055
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
17 changes: 8 additions & 9 deletions tools/rapids-upload-conda-to-s3
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ esac
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

# Prepend `conda_` to PKG_TYPE
pkg_type="conda_$pkg_type"
pkg_name="$(rapids-package-name "$pkg_type")"
else
# Prepend `conda_` to PKG_TYPE
pkg_type="conda_$pkg_type"
pkg_name="$(rapids-package-name "$pkg_type")"

# Where conda build artifacts are output
path_to_tar_up="${RAPIDS_CONDA_BLD_OUTPUT_DIR}"
# Where conda build artifacts are output
path_to_tar_up="${RAPIDS_CONDA_BLD_OUTPUT_DIR}"

rapids-upload-to-s3 "${pkg_name}" "${path_to_tar_up}"
rapids-upload-to-s3 "${pkg_name}" "${path_to_tar_up}"
fi
9 changes: 4 additions & 5 deletions tools/rapids-upload-wheels-to-s3
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ 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

pkg_name="$(rapids-package-name wheel_python)"
else
pkg_name="$(rapids-package-name wheel_python)"

rapids-upload-to-s3 "${pkg_name}" "$@"
rapids-upload-to-s3 "${pkg_name}" "$@"
fi

0 comments on commit e3a1055

Please sign in to comment.