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