Added google-services.json to cd

This commit is contained in:
Vadim 2023-04-05 22:34:06 +03:00
parent efad098ea5
commit dc2c33e494
2 changed files with 21 additions and 5 deletions

View file

@ -51,7 +51,15 @@ jobs:
echo -n "$KEYSTORE_PROPERTIES" | base64 --decode --output $KEYSTORE_PROPERTIES_PATH echo -n "$KEYSTORE_PROPERTIES" | base64 --decode --output $KEYSTORE_PROPERTIES_PATH
cp $KEYSTORE_PROPERTIES_PATH ./android cp $KEYSTORE_PROPERTIES_PATH ./android
- name: Restore firebase_options.dart - name: Restore android/app/google-services.json
env:
KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }}
run: |
GOOGLE_SERVICES_JSON_ANDROID_PATH=$RUNNER_TEMP/google-services.json
echo -n "$GOOGLE_SERVICES_JSON_ANDROID" | base64 --decode --output $GOOGLE_SERVICES_JSON_ANDROID_PATH
cp $GOOGLE_SERVICES_JSON_ANDROID_PATH ./android/app
- name: Restore lib/firebase_options.dart
env: env:
KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }} KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }}
run: | run: |

View file

@ -42,6 +42,14 @@ jobs:
echo -n "$KEYSTORE_PROPERTIES" | base64 --decode --output $KEYSTORE_PROPERTIES_PATH echo -n "$KEYSTORE_PROPERTIES" | base64 --decode --output $KEYSTORE_PROPERTIES_PATH
cp $KEYSTORE_PROPERTIES_PATH ./android cp $KEYSTORE_PROPERTIES_PATH ./android
- name: Restore android/app/google-services.json
env:
KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }}
run: |
GOOGLE_SERVICES_JSON_ANDROID_PATH=$RUNNER_TEMP/google-services.json
echo -n "$GOOGLE_SERVICES_JSON_ANDROID" | base64 --decode --output $GOOGLE_SERVICES_JSON_ANDROID_PATH
cp $GOOGLE_SERVICES_JSON_ANDROID_PATH ./android/app
- name: Restore firebase_options.dart - name: Restore firebase_options.dart
env: env:
KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }} KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }}