Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mllrr96 committed Apr 5, 2024
1 parent 8413f45 commit a859b3e
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,25 @@ jobs:
flutter pub get
dart run build_runner build --delete-conflicting-outputs
- name: Write google-services file for Android
run: printf "${{ secrets.GOOGLE_SERVICE_ANDROID }}" > android/app/google-services.json
- 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
# - name: Write google-services file for Android
# run: printf "${{ secrets.GOOGLE_SERVICE_ANDROID }}" > android/app/google-services.json
# - 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

# - name: Write secrets to files
# shell: bash
# run: |
# echo $GOOGLE_SERVICE_ANDROID | base64 -d > android/app/google-services.json
# echo $FIREBASE_APP_ID | base64 -d > ios/firebase_app_id_file.json
# echo $FIREBASE_OPTIONS | base64 -d > lib/firebase_options.dart
# env:
# GOOGLE_SERVICE_ANDROID: ${{ secrets.GOOGLE_SERVICE_ANDROID }}
# FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
# FIREBASE_OPTIONS: ${{ secrets.FIREBASE_OPTIONS }}
- name: Write secrets to files
shell: bash
run: |
echo $GOOGLE_SERVICE_ANDROID | base64 -d > android/app/google-services.json
echo $FIREBASE_APP_ID | base64 -d > ios/firebase_app_id_file.json
echo $FIREBASE_OPTIONS | base64 -d > lib/firebase_options.dart
echo $GOOGLE_INFO_PLIST_IOS | base64 -d > ios/Runner/GoogleService-Info.plist
env:
GOOGLE_SERVICE_ANDROID: ${{ secrets.GOOGLE_SERVICE_ANDROID }}
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
FIREBASE_OPTIONS: ${{ secrets.FIREBASE_OPTIONS }}
GOOGLE_INFO_PLIST_IOS: ${{ secrets.GOOGLE_INFO_PLIST_IOS }}

# - name: Write google-services file for Android
# uses: mobiledevops/secret-to-file-action@v1
Expand Down

0 comments on commit a859b3e

Please sign in to comment.