From e4304a027da4145da95c99339afbb124a030fe24 Mon Sep 17 00:00:00 2001 From: "Luong Vo (Lucas)" Date: Tue, 1 Aug 2023 11:08:28 +0700 Subject: [PATCH] [#229] Fix: exporting multi-lines env files with echo -e --- .github/workflows/android_deploy_production_to_playstore.yml | 3 ++- .github/workflows/android_deploy_staging.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android_deploy_production_to_playstore.yml b/.github/workflows/android_deploy_production_to_playstore.yml index a2130377..92b77412 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: @@ -45,7 +46,7 @@ jobs: env: ENV_PRODUCTION: ${{ secrets.ENV_PRODUCTION }} run: | - echo $ENV_PRODUCTION > .env + echo -e $ENV_PRODUCTION > .env - name: Set up release signing configs env: diff --git a/.github/workflows/android_deploy_staging.yml b/.github/workflows/android_deploy_staging.yml index 443f48f9..e932cdf3 100644 --- a/.github/workflows/android_deploy_staging.yml +++ b/.github/workflows/android_deploy_staging.yml @@ -4,6 +4,7 @@ on: push: branches: - develop + - feature/229-add-signing-config-in-workflow jobs: build_and_deploy_android: @@ -46,7 +47,7 @@ jobs: env: ENV_STAGING: ${{ secrets.ENV_STAGING }} run: | - echo $ENV_STAGING > .env.staging + echo -e $ENV_STAGING > .env.staging # App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa - name: Build Android apk