Skip to content

Commit

Permalink
Fix upload to GitHub (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
grulja committed Mar 26, 2024
1 parent 2665172 commit 1963f0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dist/upload-to-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,7 @@ echo "Uploading asset... "
# Construct url
GH_ASSET="https://uploads.github.com/repos/$OWNER/$REPO/releases/$id/assets?name=$(basename $filename)"

curl "$GITHUB_OAUTH_BASIC" --data-binary @"$filename" -H "Authorization: token $github_api_token" -H "Content-Type: application/octet-stream" $GH_ASSET
# FIXME? $GITHUB_OAUTH_BASIC expands to empty value
# curl "$GITHUB_OAUTH_BASIC" --data-binary @"$filename" -H "Authorization: token $github_api_token" -H "Content-Type: application/octet-stream" $GH_ASSET
curl --data-binary @"$filename" -H "Authorization: token $github_api_token" -H "Content-Type: application/octet-stream" $GH_ASSET

0 comments on commit 1963f0e

Please sign in to comment.