#!/bin/bash -eu LATEST_TAG="$(git describe --tags "$(git rev-list --tags --max-count=1)")" CURRENT_VERSION="$(git describe --tags)" if [ ! -z "${SERVICEACCOUNTJSON:-}" ]; then cat > app/creds.b64 < app/creds.json sed -i "s|/home/jonas/.ssh/service.json|$(pwd)/app/creds.json|" fastlane/Appfile if [ ! -z "${KEYSTORE:-}" ]; then cat > keystore.b64 < keystore cat >> gradle.properties <