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:
Jonas Nick 2020-09-23 19:18:53 +00:00
parent 43cac9d35e
commit 0c1fb9fd44
No known key found for this signature in database
GPG Key ID: 4861DBF262123605

View File

@ -68,8 +68,8 @@ fi
post_asset() {
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" \
$GH_ASSET/$(basename $TAG_NAME) &> /dev/null
curl -H "Authorization: token $OAUTH_TOKEN" --data-binary "@$1" -H "Content-Type: application/octet-stream" \
$GH_ASSET/$(basename $1) &> /dev/null
}
post_asset $ARCHIVE
post_asset $SHA256SUMS