Skip to content

Commit

Permalink
Merge pull request #9 from ajschmidt8/add-upload-summary
Browse files Browse the repository at this point in the history
Add upload summary
  • Loading branch information
ajschmidt8 authored Sep 20, 2022
2 parents 4f9b53d + 8eadd1a commit 28a0cf8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tools/rapids-upload-to-s3
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ -d "${path_to_tar_up}" ]; then

# Tar.gz to stdout and pipe that to the s3 command, no need for a local file
tar czfv - -C "${path_to_tar_up}" . | aws s3 cp --only-show-errors - "${s3_dest_path}"

browsable_url="$(dirname "${s3_dest_path}")/"
elif [ -f "${path_to_tar_up}" ]; then
rapids-echo-stderr "${echo_prefix}Path to upload is a file, uploading it directly"
Expand All @@ -33,4 +33,11 @@ else
exit 1
fi

rapids-echo-stderr "${echo_prefix}Browse uploads: ${browsable_url/s3:\/\/rapids-downloads\//https:\/\/downloads.rapids.ai\/}"
ARTIFACTS_URL=${browsable_url/s3:\/\/rapids-downloads\//https:\/\/downloads.rapids.ai\/}

if [ -f "${GITHUB_STEP_SUMMARY}" ]; then
echo "## Artifacts URL" >> "${GITHUB_STEP_SUMMARY}"
echo "${ARTIFACTS_URL}" >> "${GITHUB_STEP_SUMMARY}"
fi

rapids-echo-stderr "${echo_prefix}Browse uploads: ${ARTIFACTS_URL}"

0 comments on commit 28a0cf8

Please sign in to comment.