Skip to content

Commit 53e3ec1

Browse files
- Remove Firebase App ID extraction and use a secret instead
- Removed the step that extracted the Firebase App ID from `firebase_options.dart` in the CI workflow. - Replaced the extracted App ID with a `FIREBASE_APP_ID` secret for distributing the APK to Firebase App Distribution.
1 parent 69a8ef0 commit 53e3ec1

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -91,26 +91,11 @@ jobs:
9191
- name: Install Firebase CLI
9292
run: curl -sL https://firebase.tools | bash
9393

94-
# Extract Firebase App ID from firebase_options.dart
95-
- name: Extract Firebase App ID
96-
id: extract_app_id
97-
run: |
98-
APP_ID=$(awk '
99-
$0 ~ /static const FirebaseOptions android = FirebaseOptions\\(/ { in_android=1 }
100-
in_android && $0 ~ /appId:/ {
101-
gsub(/.*appId:[[:space:]]+\\047/, "", $0)
102-
gsub(/\\047.*/, "", $0)
103-
print $0
104-
exit
105-
}
106-
' apps/app_core/lib/firebase_options.dart)
107-
echo "APP_ID=$APP_ID" >> $GITHUB_OUTPUT
108-
10994
# Distribute APK to Firebase App Distribution
11095
- name: Distribute APK
11196
run: |
11297
firebase appdistribution:distribute apps/app_core/build/app/outputs/flutter-apk/app-prod-release.apk \
113-
--app "${{ steps.extract_app_id.outputs.APP_ID }}" \
98+
--app "${{ secrets.FIREBASE_APP_ID }}" \
11499
--groups "7Span-Internal" \
115100
--release-notes "${{ github.event.head_commit.message }}"
116101
env:

0 commit comments

Comments
 (0)