From 0ec03a721b9cdedd313a8c50ae7a37d03d5860c8 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Mon, 24 Sep 2018 21:01:40 -0400 Subject: [PATCH] update Signed-off-by: Jess Frazelle --- github-dev/upload-assets | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/github-dev/upload-assets b/github-dev/upload-assets index 248d6a0..342a1fd 100755 --- a/github-dev/upload-assets +++ b/github-dev/upload-assets @@ -58,12 +58,14 @@ main(){ # shellcheck disable=SC2068 for file in ${files[@]}; do filename=$(basename "$file") + rp=$(realpath "$file") + curl -XPOST -sSL -H "${AUTH_HEADER}" \ - --data-binary @"$file" \ + --data-binary @"$rp" \ -H "Content-Type: application/octet-stream" \ "https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${release_id}/assets?name=${filename}&access_token=${GITHUB_TOKEN}" - echo "Successfully uploaded: ${file}!" + echo "Successfully uploaded: ${rp}!" done echo "Uploading assets to ${tag_name} complete!"