message: fix upload job
diff: version: 2.1
  +orbs:
  + gcp-cli: circleci/gcp-cli@2.1.0
  +
  +commands:
  + gke-auth:
  + steps:
  + - run:
  + name: Authenticate on gcloud
  + command: |
  + echo ${GCLOUD_SERVICE_KEY} > gcloud-service-key.json
  + gcloud auth activate-service-account --key-file=gcloud-service-key.json
  + gcloud config set project ${GOOGLE_PROJECT_ID}
  + gcloud container clusters get-credentials testnet-cluster --region us-central1-a --project ${GOOGLE_PROJECT_ID}
  +
  jobs:
  build_ios:
  macos:
  @@ -95,15 +109,15 @@ jobs:
  - run: echo $GRADLE_OPTS
  - run: cd android && fastlane android beta
  - # - gke-auth
  - # - run:
  - # name: upload latest apk to gcs
  - # command: |
  - # cd ~/android/app/build
  - # VERSION_CODE=$(jq .elements[0].apkData.versionCode ./intermediates/instant_app_manifest/release/output.json)
  - # cd ./outputs/apk/release/
  - # gsutil cp ./app-release.apk gs://bitcoin-beach-wallet/"$VERSION_CODE".apk
  - # gsutil cp ./app-release.apk gs://bitcoin-beach-wallet/latest.apk
  + - gke-auth
  + - run:
  + name: upload latest apk to gcs
  + command: |
  + cd ~/android/app/build
  + VERSION_CODE=$(jq .elements[0].apkData.versionCode ./intermediates/instant_app_manifest/release/output.json)
  + cd ./outputs/apk/release/
  + gsutil cp ./app-release.apk gs://bitcoin-beach-wallet/"$VERSION_CODE".apk
  + gsutil cp ./app-release.apk gs://bitcoin-beach-wallet/latest.apk
  - run: git config credential.helper 'cache --timeout=120'
  - run: git config --global user.name "circleci-bot"
  