From 65590a04350e40256dbe875bf998433bf00468f4 Mon Sep 17 00:00:00 2001 From: Jacob Moura Date: Mon, 15 Jan 2024 01:59:40 -0300 Subject: [PATCH] Build AppBundle --- .github/workflows/android.yml | 8 +++++++- pubspec.yaml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 26458f0..eba32c3 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -39,9 +39,15 @@ jobs: KEYSTORE_PASSWD: ${{ secrets.KEYSTORE_PASSWD }} KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }} + - name: Build AppBundle + run: flutter build appbundle --release --flavor prod + env: + KEYSTORE_PASSWD: ${{ secrets.KEYSTORE_PASSWD }} + KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }} + - name: Upload Artifact uses: ncipollo/release-action@v1 with: - artifacts: ${{ github.workspace }}/build/app/outputs/flutter-apk/*.apk + artifacts: ${{ github.workspace }}/build/app/outputs/flutter-apk/*.apk,${{ github.workspace }}/build/app/outputs/flutter-apk/*.aab allowUpdates: true diff --git a/pubspec.yaml b/pubspec.yaml index a28a328..6340458 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.0.1+2 +version: 0.0.1+3 environment: sdk: '>=3.2.3 <4.0.0'