Skip to content

Commit

Permalink
Update android-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dogi authored Jul 2, 2024
1 parent e6d98e0 commit 0e31a68
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e31a68

Please sign in to comment.