set versionCode before building nightly for Google Play upload

This commit is contained in:
Conny Duck 2024-10-10 20:02:50 +02:00
parent 8a9a4f2075
commit b167ac8fcc
No known key found for this signature in database
1 changed files with 5 additions and 3 deletions

View File

@ -17,12 +17,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: get GITHUB_RUN_NUMBER
run: echo "${{ github.GITHUB_RUN_NUMBER }}"
- name: Setup
uses: ./.github/actions/setup
- name: Set versionsCode
run: |
export VERSION_CODE=$(( ${{ github.GITHUB_RUN_NUMBER }} + 11000 ))
sed -i'.original' -e "s/^\([[:space:]]*versionCode[[:space:]]*\)[0-9]*/\\1$VERSION_CODE/" app/build.gradle
- name: Build Green aab
run: ./gradlew app:bundleGreenRelease