Skip to content

Commit

Permalink
Push to google play when generating a new version
Browse files Browse the repository at this point in the history
Change-Id: Ic522dc3278bb18eb9835b1b266befeb1af872d79
  • Loading branch information
lihenggui committed Jul 6, 2023
1 parent dac5953 commit e41ba4f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: yes | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager --licenses || true

- name: Build app
run: ./gradlew :app-compose:assembleRelease
run: ./gradlew :app-compose:assembleRelease :app-compose:bundleRelease

- name: Create Release
id: create_release
Expand Down Expand Up @@ -86,6 +86,17 @@ jobs:
name: mappings
path: "app-compose/build/outputs/mapping/marketRelease"

- name: Publish to Play Store internal test track
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.repository == 'lihenggui/Blocker'
uses: r0adkll/upload-google-play@v1.1.1
with:
serviceAccountJsonPlainText: ${{ secrets.ANDROID_SERVICE_ACCOUNT_JSON }}
packageName: com.merxury.blocker
releaseFiles: app-compose/build/outputs/bundle/marketRelease/app-compose-market-release.aab
track: beta
inAppUpdatePriority: 2
mappingFile: app-compose/build/outputs/mapping/marketRelease/mapping.txt

- name: Set apk path
id: apk-path
run: |
Expand All @@ -99,4 +110,4 @@ jobs:
id: apk-info
uses: zhaobozhen/apk-info-action@1.1.2
with:
apk-path: ${{ steps.apk-path.outputs.foss_path }}
apk-path: ${{ steps.apk-path.outputs.foss_path }}

0 comments on commit e41ba4f

Please sign in to comment.