File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ jobs:
107107
108108 build_android :
109109 if : ${{ github.ref == 'refs/heads/development' || github.ref == 'refs/heads/master' }}
110- needs : [analyze, test ]
110+ needs : [analyze]
111111 runs-on : macos-latest
112112 timeout-minutes : 60
113113 steps :
@@ -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
You can’t perform that action at this time.
0 commit comments