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
This commit is contained in:
Nik Clayton 2023-09-19 12:05:06 +02:00 committed by GitHub
parent 4775ef85e9
commit 26482c4b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -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