Merge #240: push-release: fix bug where assets are not pushed

0c1fb9fd44 push-release: fix bug where assets are not pushed (Jonas Nick)

Pull request description:

ACKs for top commit:
  erikarvstedt:
    utACK 0c1fb9fd44

Tree-SHA512: 54f03603aa453d5629bf6e62b2f320ae5b0e9996eed72fe4a7110da93e3063e53682d6f166321283ed2fca485a2c44dbd4bb8b076e51e4e1336cc0f192c00cdb
This commit is contained in:
Jonas Nick 2020-09-25 17:56:17 +00:00
commit ef2b5f9ea0
No known key found for this signature in database
GPG Key ID: 4861DBF262123605

View File

@ -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