From 07df51c3b8cb7e3f392b66a5c1547df88a394346 Mon Sep 17 00:00:00 2001 From: Langston Smith Date: Fri, 9 Aug 2019 10:32:39 -0700 Subject: [PATCH] Added CircleCI command to create google services json file in Release job (#1166) --- circle.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/circle.yml b/circle.yml index 48145d55d..3ed70b874 100644 --- a/circle.yml +++ b/circle.yml @@ -111,6 +111,13 @@ jobs: command: | #!/bin/bash echo "${PLAY_PUBLISH_AUTH_JSON}" > android-gl-native-6d21dd280e7b.json + - run: + name: Create google-services.json file + shell: /bin/bash -euo pipefail + command: | + if [ -n "${GOOGLE_SERVICES_JSON_RELEASE}" ]; then + echo "${GOOGLE_SERVICES_JSON_RELEASE}" > MapboxAndroidDemo/google-services.json + fi - run: name: Release to Google Play command: ./gradlew publishGlobalRelease