From 2f2495e3e952f33e60c8863434c68938de8375a6 Mon Sep 17 00:00:00 2001 From: Pratik-canopas Date: Fri, 6 Dec 2024 16:32:05 +0530 Subject: [PATCH] Update workflow --- .github/workflows/analyze.yml | 3 +++ .github/workflows/android_build.yml | 3 +++ .github/workflows/android_deploy.yml | 3 +++ .github/workflows/ios_deploy.yml | 4 +++- 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 783cf28..877e8ef 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -22,6 +22,7 @@ jobs: GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }} GOOGLE_SERVICE_INFO_PLIST_BASE64: ${{ secrets.GOOGLE_SERVICE_INFO_PLIST_BASE64 }} FIREBASE_APP_ID_FILE_JSON_BASE64: ${{ secrets.FIREBASE_APP_ID_FILE_JSON_BASE64 }} + APP_SECRETS_BASE64: ${{ secrets.APP_SECRETS_BASE64 }} run: | cd app @@ -29,6 +30,8 @@ jobs: echo $GOOGLE_SERVICES_JSON_BASE64 | base64 -di > android/app/google-services.json echo $GOOGLE_SERVICE_INFO_PLIST_BASE64 | base64 --decode > ios/Runner/GoogleService-Info.plist echo $FIREBASE_APP_ID_FILE_JSON_BASE64 | base64 --decode > ios/firebase_app_id_file.json + cd ../data + echo $APP_SECRETS_BASE64 | base64 --decode > lib/apis/network/secrets.dart - name: Install dependencies run: | diff --git a/.github/workflows/android_build.yml b/.github/workflows/android_build.yml index aa6002d..f7bdad4 100644 --- a/.github/workflows/android_build.yml +++ b/.github/workflows/android_build.yml @@ -33,10 +33,13 @@ jobs: env: FIREBASE_OPTIONS_BASE64: ${{ secrets.FIREBASE_OPTIONS_BASE64 }} GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }} + APP_SECRETS_BASE64: ${{ secrets.APP_SECRETS_BASE64 }} run: | cd app echo $FIREBASE_OPTIONS_BASE64 | base64 -di > lib/firebase_options.dart echo $GOOGLE_SERVICES_JSON_BASE64 | base64 -di > android/app/google-services.json + cd ../data + echo $APP_SECRETS_BASE64 | base64 --decode > lib/apis/network/secrets.dart - name: Install dependencies run: | diff --git a/.github/workflows/android_deploy.yml b/.github/workflows/android_deploy.yml index ce979ae..1e6bcba 100644 --- a/.github/workflows/android_deploy.yml +++ b/.github/workflows/android_deploy.yml @@ -38,10 +38,13 @@ jobs: env: FIREBASE_OPTIONS_BASE64: ${{ secrets.FIREBASE_OPTIONS_BASE64 }} GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }} + APP_SECRETS_BASE64: ${{ secrets.APP_SECRETS_BASE64 }} run: | cd app echo $FIREBASE_OPTIONS_BASE64 | base64 -di > lib/firebase_options.dart echo $GOOGLE_SERVICES_JSON_BASE64 | base64 -di > android/app/google-services.json + cd ../data + echo $APP_SECRETS_BASE64 | base64 --decode > lib/apis/network/secrets.dart - name: Install dependencies run: | diff --git a/.github/workflows/ios_deploy.yml b/.github/workflows/ios_deploy.yml index d03ed73..4eabde2 100644 --- a/.github/workflows/ios_deploy.yml +++ b/.github/workflows/ios_deploy.yml @@ -34,12 +34,14 @@ jobs: FIREBASE_OPTIONS_BASE64: ${{ secrets.FIREBASE_OPTIONS_BASE64 }} GOOGLE_SERVICE_INFO_PLIST_BASE64: ${{ secrets.GOOGLE_SERVICE_INFO_PLIST_BASE64 }} FIREBASE_APP_ID_FILE_JSON_BASE64: ${{ secrets.FIREBASE_APP_ID_FILE_JSON_BASE64 }} + APP_SECRETS_BASE64: ${{ secrets.APP_SECRETS_BASE64 }} run: | cd app echo $FIREBASE_OPTIONS_BASE64 | base64 --decode > lib/firebase_options.dart echo $GOOGLE_SERVICE_INFO_PLIST_BASE64 | base64 --decode > ios/Runner/GoogleService-Info.plist echo $FIREBASE_APP_ID_FILE_JSON_BASE64 | base64 --decode > ios/firebase_app_id_file.json - + cd ../data + echo $APP_SECRETS_BASE64 | base64 --decode > lib/apis/network/secrets.dart - name: Install dependencies run: | cd app