Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-09-24 15:50:03 -04:00
parent 5800509c7f
commit 18dcbce78b
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

View File

@ -36,6 +36,18 @@ main(){
echo "Uploading files: ${files[@]}"
echo "For tag name: ${tag_name} tag id: ${tag_id}"
for file in ${files[@]}; do
filename=$(basename "$file")
curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" \
--data-binary @"$file" \
-H "Content-Type: application/octet-stream" \
"${URI}/repos/${GITHUB_REPOSITORY}/releases/${tag_id}/assets?name=${filename}"
echo "Successfully uploaded: ${file}!"
done
echo "Uploading assets to ${tag_name} complete!"
}
main $@