Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-09-24 21:01:40 -04:00
parent 463936c4ae
commit 0ec03a721b
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

View File

@ -58,12 +58,14 @@ main(){
# shellcheck disable=SC2068 # shellcheck disable=SC2068
for file in ${files[@]}; do for file in ${files[@]}; do
filename=$(basename "$file") filename=$(basename "$file")
rp=$(realpath "$file")
curl -XPOST -sSL -H "${AUTH_HEADER}" \ curl -XPOST -sSL -H "${AUTH_HEADER}" \
--data-binary @"$file" \ --data-binary @"$rp" \
-H "Content-Type: application/octet-stream" \ -H "Content-Type: application/octet-stream" \
"https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${release_id}/assets?name=${filename}&access_token=${GITHUB_TOKEN}" "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 done
echo "Uploading assets to ${tag_name} complete!" echo "Uploading assets to ${tag_name} complete!"