Skip to content

Commit 1ac5990

Browse files
committed
cicd: split up google-services depending on environment
1 parent 9adc029 commit 1ac5990

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,11 @@ jobs:
158158
run: flutter pub run flutter_launcher_icons:main
159159

160160
- name: Build appbundle
161+
env:
162+
GOOGLE_SERVICES_JSON: ${{ github.ref == 'refs/heads/master' && secrets.ANDROID_GOOGLE_SERVICES_JSON || secrets.ANDROID_GOOGLE_SERVICES_JSON_DEV }}
161163
run: |
162164
echo ${{ github.ref == 'refs/heads/master' && secrets.ENV_PROD || secrets.ENV_DEV }} | base64 -d > .env
163-
echo ${{ secrets.ANDROID_GOOGLE_SERVICES_JSON }} | base64 -d > android/app/google-services.json
165+
echo $GOOGLE_SERVICES_JSON | base64 -d > android/app/google-services.json
164166
flutter build appbundle --release --build-number $GITHUB_RUN_NUMBER
165167
cp release_notes.txt build/app/outputs/
166168

0 commit comments

Comments
 (0)