mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
update
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
463936c4ae
commit
0ec03a721b
|
@ -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!"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user