Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mllrr96 committed Apr 3, 2024
1 parent a032e99 commit e3da445
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3da445

Please sign in to comment.