push-release: fix bug where assets are not pushed
In a previous commit we found and replaced $1 with $TAG_NAME, but that wasn't correct for the post_asset() function.
This commit is contained in:
parent
43cac9d35e
commit
0c1fb9fd44
@ -68,8 +68,8 @@ fi
|
|||||||
|
|
||||||
post_asset() {
|
post_asset() {
|
||||||
GH_ASSET="https://uploads.github.com/repos/$REPO/releases/$ID/assets?name="
|
GH_ASSET="https://uploads.github.com/repos/$REPO/releases/$ID/assets?name="
|
||||||
curl -H "Authorization: token $OAUTH_TOKEN" --data-binary "@$TAG_NAME" -H "Content-Type: application/octet-stream" \
|
curl -H "Authorization: token $OAUTH_TOKEN" --data-binary "@$1" -H "Content-Type: application/octet-stream" \
|
||||||
$GH_ASSET/$(basename $TAG_NAME) &> /dev/null
|
$GH_ASSET/$(basename $1) &> /dev/null
|
||||||
}
|
}
|
||||||
post_asset $ARCHIVE
|
post_asset $ARCHIVE
|
||||||
post_asset $SHA256SUMS
|
post_asset $SHA256SUMS
|
||||||
|
Loading…
Reference in New Issue
Block a user