From bbca0fd052c249611b11c1a081e2030eec956727 Mon Sep 17 00:00:00 2001 From: Pratik-canopas Date: Fri, 26 Apr 2024 10:44:53 +0530 Subject: [PATCH] Reset secrets --- .github/workflows/analyze.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 810dfe0..4f11095 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -16,6 +16,20 @@ jobs: channel: 'stable' cache: true + - name: Retrieve the secret and decode it to a file + env: + FIREBASE_OPTIONS_BASE64: ${{ secrets.FIREBASE_OPTIONS_BASE64 }} + 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 }} + + 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 + 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 + - name: Install dependencies run: | cd app