From 26482c4b7808187f24edde200af5fcf681059048 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 19 Sep 2023 12:05:06 +0200 Subject: [PATCH] ci: Support generating whatsnew and uploading to Google Play (#69) Add additional steps which: - Generate the whatsnew-en-US file from the Fastlane metadata - Uploads the generated AAB file to Google Play --- .../upload-blue-release-google-play.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/upload-blue-release-google-play.yml b/.github/workflows/upload-blue-release-google-play.yml index 9184cd8cb..96ea1640c 100644 --- a/.github/workflows/upload-blue-release-google-play.yml +++ b/.github/workflows/upload-blue-release-google-play.yml @@ -63,3 +63,21 @@ jobs: with: name: app-release.apk path: ${{steps.sign_app_apk.outputs.signedReleaseFile}} + + - name: Generate whatsnew + id: generate-whatsnew + run: | + mkdir -p googleplay/whatsnew + cp $(find fastlane/metadata/android/en-US/changelogs | sort -n -k6 -t/ | tail -n 1) googleplay/whatsnew/whatsnew-en-US + + - name: Upload AAB to Google Play + id: upload-release-asset-aab + uses: r0adkll/upload-google-play@v1.1.1 + with: + serviceAccountJsonPlainText: ${{ secrets.PLAY_SERVICE_ACCOUNT_KEY }} + packageName: app.pachli + releaseFiles: ${{steps.sign_app_aab.outputs.signedReleaseFile}} + track: internal + whatsNewDirectory: googleplay/whatsnew + status: completed + mappingFile: app/build/outputs/mapping/blueRelease/mapping.txt