fix: release upload uses raw binary API (Gitea correct format)
dev / Build debug APK (push) Successful in 18s
dev / Build debug APK (push) Successful in 18s
This commit is contained in:
1 parent
9cc3a1e872
commit
998878f174
1 file changed
+3
-2
@@ -84,9 +84,10 @@ jobs:
|
||||
echo "Release ID: $RELEASE_ID"
|
||||
|
||||
if [ -n "$RELEASE_ID" ] && [ -f "$APK" ]; then
|
||||
curl -s -X POST "https://git.trevena.info/api/v1/repos/nick/incido/releases/$RELEASE_ID/assets" \
|
||||
curl -s -X POST "https://git.trevena.info/api/v1/repos/nick/incido/releases/$RELEASE_ID/assets?name=$(basename $APK)" \
|
||||
-H "Authorization: token $GITHUB_TOKEN" \
|
||||
-F "attachment=@$APK;filename=$(basename $APK)"
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
--data-binary "@$APK"
|
||||
echo "APK $(basename $APK) attached to release $TAG"
|
||||
else
|
||||
echo "WARNING: Could not attach APK (release_id=$RELEASE_ID, apk_exists=$(test -f '$APK' && echo yes || echo no))"
|
||||
|
||||
Reference in new issue
Block a user