Skip to content

Commit

Permalink
set versionCode before building nightly for Google Play upload
Browse files Browse the repository at this point in the history
  • Loading branch information
connyduck committed Oct 10, 2024
1 parent 8a9a4f2 commit b167ac8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b167ac8

Please sign in to comment.