Skip to content

Commit

Permalink
Update upload.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
imbroglius authored Jul 4, 2024
1 parent 278a08b commit cc0670a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ if [ "$1" == "--skip-ota" ]; then
SKIPOTA=true
fi

curl -o /dev/null -sH "$AUTH" $GREPO || { echo "Error: Invalid repo, token or network issue!"; exit 1; }
curl -o /dev/null -sH "token $GITHUB_TOKEN"" $GREPO || { echo "Error: Invalid repo, token or network issue!"; exit 1; }
createRelease() {
echo "--> Creating release $TAG"
res=$(curl -s -L -X POST \
"https://api.github.com/repos/$GUSER/$GREPO/releases" \
-H "Accept: application/vnd.github+json" \
-H "Authorization: AUTH" \
-H "Authorization: token $GITHUB_TOKEN" \
-d "{\"tag_name\":\"$TAG\",\"name\":\"AOSP 14.0 $TAG\",\"body\":\"## Changelog\n- ...\n\n## Notes\n- ...\",\"draft\":true}")
id=$(echo "$res" | jq -rc ".id")
echo
Expand All @@ -44,7 +44,7 @@ uploadAssets() {
curl -o /dev/null -s -L -X POST \
"https://uploads.github.com/repos/$GUSER/$GREPO/releases/$id/assets?name=$(basename $file)" \
-H "Accept: application/vnd.github+json" \
-H "Authorization: AUTH" \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/octet-stream" \
-T "$file"
echo
Expand Down

0 comments on commit cc0670a

Please sign in to comment.