From 0e31a68476593e00e76074b9e31a949139561828 Mon Sep 17 00:00:00 2001 From: dogi Date: Tue, 2 Jul 2024 17:00:44 -0400 Subject: [PATCH] Update android-release.yml --- .github/workflows/android-release.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 5ddc9e512e..a63f98508b 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -49,15 +49,13 @@ jobs: cp "${file}.lite" "$file" done ls -al app/build.gradle - ANDROID_VERSION_LITE=$(grep -oP 'versionName "\K[^\"]+' build.gradle) - echo "ANDROID_VERSION_LITE=$ANDROID_VERSION_LITE" >> $GITHUB_ENV + echo ANDROID_VERSION_LITE=$(grep -oP 'versionName "\K[^\"]+' app/build.gradle) >> $GITHUB_ENV sed -i 's/\(versionName "[0-9.]\+\)"/\1-lite"/' app/build.gradle - name: build release APK and AAB run: | - ANDROID_VERSION_NAME=$(grep -oP 'versionName "\K[^\"]+' build.gradle) - echo "ANDROID_VERSION_NAME=$ANDROID_VERSION_NAME" >> $GITHUB_ENV - echo ANDROID_VERSION_CODE="$(grep versionCode app/build.gradle | sed 's/[^0-9]//g')" >> $GITHUB_ENV + echo ANDROID_VERSION_NAME=$(grep -oP 'versionName "\K[^\"]+' app/build.gradle) >> $GITHUB_ENV + echo ANDROID_VERSION_CODE=$(grep versionCode app/build.gradle | sed 's/[^0-9]//g') >> $GITHUB_ENV ./gradlew assembleRelease bundleRelease ls -alR app/build/outputs mkdir -p sign