Skip to content

Commit

Permalink
Add Setup Firebase step to CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedLSayed9 committed Sep 9, 2023
1 parent 8ecc958 commit eb59132
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ jobs:
with:
channel: "stable"

- name: Setup Firebase
shell: bash
env:
FIREBASE_OPTIONS: ${{ secrets.FIREBASE_OPTIONS }}
ANDROID_GOOGLE_SERVICE: ${{ secrets.ANDROID_GOOGLE_SERVICE }}
IOS_GOOGLE_SERVICE: ${{ secrets.IOS_GOOGLE_SERVICE }}
run: |
echo "$FIREBASE_OPTIONS" > lib/firebase_options.dart
dart format lib/firebase_options.dart --line-length=100
echo "$ANDROID_GOOGLE_SERVICE" > android/app/google-services.json
echo "$IOS_GOOGLE_SERVICE" > ios/Runner/GoogleService-Info.plist
- name: Install dependencies
run: flutter pub get

Expand Down

0 comments on commit eb59132

Please sign in to comment.