From 998878f17404717452622d59652f07bcd29898bf Mon Sep 17 00:00:00 2001 From: Incido Developer Date: Thu, 20 Aug 2026 03:07:42 +1200 Subject: [PATCH] fix: release upload uses raw binary API (Gitea correct format) --- .gitea/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index ce5b1f5..f6c1270 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -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))"