fix: release upload uses raw binary API (Gitea correct format)
dev / Build debug APK (push) Successful in 18s

This commit is contained in:
Incido Developer committed 2026-08-20 03:07:42 +12:00
1 parent 9cc3a1e872
commit 998878f174
1 file changed
+3 -2
+3 -2
View File
@@ -84,9 +84,10 @@ jobs:
echo "Release ID: $RELEASE_ID" echo "Release ID: $RELEASE_ID"
if [ -n "$RELEASE_ID" ] && [ -f "$APK" ]; then 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" \ -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" echo "APK $(basename $APK) attached to release $TAG"
else else
echo "WARNING: Could not attach APK (release_id=$RELEASE_ID, apk_exists=$(test -f '$APK' && echo yes || echo no))" echo "WARNING: Could not attach APK (release_id=$RELEASE_ID, apk_exists=$(test -f '$APK' && echo yes || echo no))"