diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 63ed6823d3..ac56d1bbb3 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -49,13 +49,13 @@ jobs: cp "${file}.lite" "$file" done ls -al app/build.gradle - echo "ANDROID_VERSION_LITE=$(grep 'versionName \"' build.gradle | awk -F'\"' '{print $2}')" >> $GITHUB_ENV + echo ANDROID_VERSION_LITE=$(grep 'versionName "' build.gradle | awk -F'"' '{print $2}') >> $GITHUB_ENV sed -i 's/\(versionName "[0-9.]\+\)"/\1-lite"/' app/build.gradle - name: build release APK and AAB run: | - echo "ANDROID_VERSION_NAME=$(grep 'versionName \"' build.gradle | awk -F'\"' '{print $2}')" >> $GITHUB_ENV - echo "ANDROID_VERSION_CODE=$(grep versionCode app/build.gradle | sed 's/[^0-9.]//g')" >> $GITHUB_ENV + echo ANDROID_VERSION_NAME=$(grep 'versionName "' build.gradle | awk -F'"' '{print $2}') >> $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