mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 23:10:40 +00:00
Added google-services.json
to cd
This commit is contained in:
parent
efad098ea5
commit
dc2c33e494
2 changed files with 21 additions and 5 deletions
10
.github/workflows/cd_dev.yml
vendored
10
.github/workflows/cd_dev.yml
vendored
|
@ -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: |
|
||||||
|
|
16
.github/workflows/cd_prod.yml
vendored
16
.github/workflows/cd_prod.yml
vendored
|
@ -20,11 +20,11 @@ jobs:
|
||||||
${{ secrets.M3_LIGHTMETER_IAP_KEY }}
|
${{ secrets.M3_LIGHTMETER_IAP_KEY }}
|
||||||
repo-mappings: |
|
repo-mappings: |
|
||||||
github.com/vodemn/m3_lightmeter_iap
|
github.com/vodemn/m3_lightmeter_iap
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- uses: actions/setup-java@v2
|
- uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
|
@ -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 }}
|
||||||
|
@ -49,14 +57,14 @@ jobs:
|
||||||
FIREBASE_OPTIONS_PATH=$RUNNER_TEMP/firebase_options.dart
|
FIREBASE_OPTIONS_PATH=$RUNNER_TEMP/firebase_options.dart
|
||||||
echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH
|
echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH
|
||||||
cp $FIREBASE_OPTIONS_PATH ./lib
|
cp $FIREBASE_OPTIONS_PATH ./lib
|
||||||
|
|
||||||
- name: Install Flutter
|
- name: Install Flutter
|
||||||
uses: subosito/flutter-action@v2
|
uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
channel: "stable"
|
channel: "stable"
|
||||||
|
|
||||||
- name: Prepare flutter project
|
- name: Prepare flutter project
|
||||||
run: |
|
run: |
|
||||||
flutter --version
|
flutter --version
|
||||||
flutter pub get
|
flutter pub get
|
||||||
flutter pub run intl_utils:generate
|
flutter pub run intl_utils:generate
|
||||||
|
|
Loading…
Reference in a new issue