From 90ffb417e7654a92b2aa0e0ff208e0ba054cccf9 Mon Sep 17 00:00:00 2001 From: "Luong Vo (Lucas)" Date: Mon, 31 Jul 2023 16:59:17 +0700 Subject: [PATCH] [#229] Add missing release signing configs in CD workflows --- .../workflows/android_deploy_production_to_playstore.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/android_deploy_production_to_playstore.yml b/.github/workflows/android_deploy_production_to_playstore.yml index ccbcd41d..6b1094f1 100644 --- a/.github/workflows/android_deploy_production_to_playstore.yml +++ b/.github/workflows/android_deploy_production_to_playstore.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - feature/229-add-signing-config-in-workflow jobs: build_and_deploy_android: @@ -47,6 +48,14 @@ jobs: run: | echo $ENV_PRODUCTION > .env + - name: Set up release signing configs + env: + ANDROID_RELEASE_KEYSTORE: ${{ secrets.ANDROID_RELEASE_KEYSTORE }} + ANDROID_SIGNING_PROPERTIES: ${{ secrets.ANDROID_SIGNING_PROPERTIES }} + run: | + echo $ANDROID_RELEASE_KEYSTORE | base64 --decode > android/config/release.keystore + echo $ANDROID_SIGNING_PROPERTIES | base64 --decode > android/signing.properties + - name: Build Production App Bundle run: flutter build appbundle --flavor production --release --build-number $GITHUB_RUN_NUMBER