Skip to content

Commit a807904

Browse files
author
Anton
committed
fix(ci): use wildcard and find for android apk to handle unsigned builds
1 parent 976248e commit a807904

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
uses: actions/upload-artifact@v4
5959
with:
6060
name: android-release
61-
path: clock-android/app/build/outputs/apk/release/app-release.apk
61+
path: clock-android/app/build/outputs/apk/release/*.apk
6262

6363
create-release:
6464
needs: [build-windows, build-android]
@@ -76,8 +76,14 @@ jobs:
7676
with:
7777
name: android-release
7878

79-
- name: Rename APK
80-
run: mv app-release.apk clock.apk
79+
- name: Find and Rename APK
80+
run: |
81+
APK_FILE=$(find . -name "*.apk" | head -n 1)
82+
if [ -z "$APK_FILE" ]; then
83+
echo "No APK found!"
84+
exit 1
85+
fi
86+
mv "$APK_FILE" clock.apk
8187
8288
- name: Create Release
8389
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)