From 594525ed106f8b90f6b07b9d79b80750b61cdbcd Mon Sep 17 00:00:00 2001 From: Incido Developer Date: Thu, 20 Aug 2026 13:27:56 +1200 Subject: [PATCH] fix(release): use correct APK filenames (app-debug.apk, app-release.apk) --- .gitea/workflows/release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 7bcbb6c..584af29 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -104,12 +104,13 @@ jobs: if [ -z "$RELEASE_ID" ]; then echo "ERROR: Failed to get release ID"; exit 1; fi for APK in "$APK_DEBUG" "$APK_RELEASE"; do - if [ -f "app/build/outputs/apk/release/$APK" ]; then - APK_PATH="app/build/outputs/apk/release/$APK" - elif [ -f "app/build/outputs/apk/debug/$APK" ]; then - APK_PATH="app/build/outputs/apk/debug/$APK" + if echo "$APK" | grep -q "debug"; then + APK_PATH="app/build/outputs/apk/debug/app-debug.apk" else - echo "ERROR: APK not found: $APK" + APK_PATH="app/build/outputs/apk/release/app-release.apk" + fi + if [ ! -f "$APK_PATH" ]; then + echo "ERROR: APK not found: $APK_PATH" exit 1 fi if [ ! -f "$APK_PATH" ]; then