From e3da445dc3a8a2a260f98bdf508bdc4c6741d014 Mon Sep 17 00:00:00 2001 From: Mohammed Ragheb Date: Wed, 3 Apr 2024 23:42:48 +0300 Subject: [PATCH] Update workflow --- .github/workflows/main.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b8c3a9c0..a283c2e9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,12 +41,24 @@ jobs: base64-encoded-secret: ${{ secrets.FIREBASE_APP_ID }} filename: "firebase_app_id_file.json" is-executable: false - working-directory: "ios/firebase_app_id_file.json" -# run: printf "${{ secrets.FIREBASE_APP_ID }}" > ios/firebase_app_id_file.json + working-directory: "ios" + + - name: Write firebase options file + uses: mobiledevops/secret-to-file-action@v1 + with: + base64-encoded-secret: ${{ secrets.FIREBASE_OPTIONS }} + filename: "firebase_options.dart" + is-executable: false + working-directory: "lib" + - name: Write GoogleService-Info.plist file for iOS - run: printf "${{ secrets.GOOGLE_INFO_PLIST_IOS }}" > ios/Runner/GoogleService-Info.plist - - name : Write firebase options file - run: printf "${{ secrets.FIREBASE_OPTIONS }}" > lib/firebase_options.dart + uses: mobiledevops/secret-to-file-action@v1 + with: + base64-encoded-secret: ${{ secrets.GOOGLE_INFO_PLIST_IOS }} + filename: "GoogleService-Info.plist" + is-executable: false + working-directory: "ios/Runner" + - name: Build APK run: | flutter build apk --release