Publish to GP workflow

This commit is contained in:
Hanh 2023-02-07 17:57:43 +10:00
parent 605fe92ece
commit 12b0853ada
4 changed files with 13 additions and 2 deletions

View File

@ -59,3 +59,12 @@ jobs:
files: |
${{ steps.extract.outputs.destination }}/app-fdroid.apk
${{ steps.extract.outputs.destination }}/app-fdroid.aab
- name: publish
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: me.hanh.ywallet
releaseFiles: ${{ steps.extract.outputs.destination }}/app-fdroid.aab
track: internal
status: completed

2
codegen.sh Executable file
View File

@ -0,0 +1,2 @@
flutter pub get
flutter pub run build_runner build -d

View File

@ -1,5 +1,5 @@
#!/bin/sh
adb uninstall me.hanh.ywallet
bundletool build-apks --overwrite --bundle=build/app/outputs/bundle/release/app-release.aab --output=/tmp/app.apks --ks=docker/zwallet.jks --ks-key-alias=hanh --ks-pass=pass:$JKS_PASSWORD
bundletool build-apks --overwrite --bundle=build/app/outputs/bundle/release/app-release.aab --output=/tmp/app.apks --ks=docker/zwallet.jks --ks-key-alias=zwallet --ks-pass=pass:$JKS_PASSWORD
bundletool install-apks --adb=$ANDROID_SDK_ROOT/platform-tools/adb --apks=/tmp/app.apks

View File

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.2.17+367
version: 1.2.17+368
environment:
sdk: ">=2.12.0 <3.0.0"