Skip to content

Commit

Permalink
[#226] Fix: exporting multi-lines env files with echo -e
Browse files Browse the repository at this point in the history
  • Loading branch information
luongvo committed Aug 3, 2023
1 parent a631178 commit 5d2d775
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android_deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
env:
ENV_PRODUCTION: ${{ secrets.ENV_PRODUCTION }}
run: |
echo $ENV_PRODUCTION > .env
echo -e $ENV_PRODUCTION > .env
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa
- name: Build Android apk
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/android_deploy_production_to_playstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- feature/229-add-signing-config-in-workflow

jobs:
build_and_deploy_android:
Expand Down Expand Up @@ -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:
Expand All @@ -54,6 +55,8 @@ jobs:
run: |
echo $ANDROID_RELEASE_KEYSTORE_BASE64 | base64 --decode > android/config/release.keystore
echo $ANDROID_SIGNING_PROPERTIES_BASE64 | base64 --decode > android/signing.properties
cat .env
cat android/signing.properties
- name: Build Production App Bundle
run: flutter build appbundle --flavor production --release --build-number $GITHUB_RUN_NUMBER
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android_deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ios_deploy_staging_to_firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
env:
ENV_STAGING: ${{ secrets.ENV_STAGING }}
run: |
echo $ENV_STAGING > .env.staging
echo -e $ENV_STAGING > .env.staging
- name: Run code generator
run: flutter packages pub run build_runner build --delete-conflicting-outputs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
env:
ENV_PRODUCTION: ${{#mustacheCase}}secrets.ENV_PRODUCTION{{/mustacheCase}}
run: |
echo $ENV_PRODUCTION > .env
echo -e $ENV_PRODUCTION > .env
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa
- name: Build Android apk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
env:
ENV_PRODUCTION: ${{#mustacheCase}}secrets.ENV_PRODUCTION{{/mustacheCase}}
run: |
echo $ENV_PRODUCTION > .env
echo -e $ENV_PRODUCTION > .env
- name: Set up release signing configs
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
env:
ENV_STAGING: ${{#mustacheCase}}secrets.ENV_STAGING{{/mustacheCase}}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
env:
ENV_STAGING: ${{#mustacheCase}}secrets.ENV_STAGING{{/mustacheCase}}
run: |
echo $ENV_STAGING > .env.staging
echo -e $ENV_STAGING > .env.staging
- name: Run code generator
run: flutter packages pub run build_runner build --delete-conflicting-outputs
Expand Down

0 comments on commit 5d2d775

Please sign in to comment.