From 43b3a2b91c41111cfa0401b16b39dc482885ee2c Mon Sep 17 00:00:00 2001 From: WardPearce Date: Sat, 30 Nov 2024 19:09:51 +1300 Subject: [PATCH] Fix signed moving --- .github/workflows/prod-android.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/prod-android.yml b/.github/workflows/prod-android.yml index 9e7c93ca..a075d7e6 100644 --- a/.github/workflows/prod-android.yml +++ b/.github/workflows/prod-android.yml @@ -67,18 +67,19 @@ jobs: - name: Make release dir run: mkdir app/release - - name: Delete unsigned files - run: find app/build/outputs/ -type f -name '*unsigned*' ! -name '*signed*' -exec rm {} + - continue-on-error: true - - name: Delete temp apks run: rm app/build/outputs/*temp* continue-on-error: true - name: Move files to release run: | - mv app/build/outputs/*signed.aab app/release/ - mv app/build/outputs/*signed.apk app/release/ + mv app/build/outputs/*-signed.aab app/release/ + mv app/build/outputs/*-signed.apk app/release/ + continue-on-error: true + + - name: Remove unsigned from file name + run: cd app/release/ && for file in *-unsigned*; do mv "$file" "${file//-unsigned/}"; done + continue-on-error: true - name: get-npm-version id: package-version