Skip to content

Commit

Permalink
Add Play Store app publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
luongvo committed Jan 23, 2024
1 parent df14cb6 commit 6464467
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 105 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/android_deploy_production_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- chore/publish-to-playstore
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -54,30 +55,30 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Run unit tests with Kover
run: ./gradlew koverMergedXmlReport

- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./build/reports/kover/merged/xml/report.xml
flags: unittests # optional
fail_ci_if_error: false
verbose: true

- uses: chkfung/android-version-actions@v1.1
with:
gradlePath: android/build.gradle.kts
versionCode: ${{ github.run_number }}

- name: Build Production release APK
run: ./gradlew assembleProductionRelease
# - name: Build Production release APK
# run: ./gradlew assembleProductionRelease
#
# - name: Deploy staging to Firebase
# uses: wzieba/Firebase-Distribution-Github-Action@v1
# with:
# appId: '1:835959262689:android:cfc4c7eb6425a49c0896a0'
# serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }}
# groups: nimble
# file: android/build/outputs/apk/production/release/android-production-release.apk

- name: Build the Production App Bundle
run: ./gradlew bundleProductionRelease

- name: Deploy staging to Firebase
uses: wzieba/Firebase-Distribution-Github-Action@v1
- name: Upload the Android Production bundle to the Play Store
uses: r0adkll/upload-google-play@v1
with:
appId: '1:835959262689:android:cfc4c7eb6425a49c0896a0'
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }}
groups: nimble
file: android/build/outputs/apk/production/release/android-production-release.apk
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
packageName: vn.luongvo.kmm.survey.android
releaseFiles: android/build/outputs/bundle/productionRelease/android-production-release.aab
track: internal
whatsNewDirectory: .github/workflows/whatsnew
12 changes: 0 additions & 12 deletions .github/workflows/android_deploy_staging_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,6 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Run unit tests with Kover
run: ./gradlew koverMergedXmlReport

- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./build/reports/kover/merged/xml/report.xml
flags: unittests # optional
fail_ci_if_error: false
verbose: true

- uses: chkfung/android-version-actions@v1.1
with:
gradlePath: android/build.gradle.kts
Expand Down
73 changes: 0 additions & 73 deletions .github/workflows/review_pull_request.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/whatsnew/whatsnew-en-US
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<en-US>
Enter or paste your release notes for en-US here
</en-US>

0 comments on commit 6464467

Please sign in to comment.