xref: /aosp_15_r20/external/aws-crt-java/codebuild/cd/deploy-snapshot-android.sh (revision 3c7ae9de214676c52d19f01067dc1a404272dc11)
1#!/bin/bash
2
3set -ex
4set -o pipefail # Make sure one process in pipe fail gets bubble up
5
6git submodule update --init
7cd ./android
8
9GPG_KEY=$(cat /tmp/aws-sdk-common-runtime.key.asc)
10# Publish to nexus
11../gradlew -PsigningKey=$"$GPG_KEY" -PsigningPassword=$GPG_PASSPHRASE -PsonatypeUsername='aws-sdk-common-runtime' -PsonatypePassword=$ST_PASSWORD publishToAwsNexus closeAwsNexusStagingRepository | tee /tmp/android_deploy.log
12# Get the staging repository id and save it
13cat /tmp/android_deploy.log | grep "Created staging repository" | cut -d\' -f2 | tee /tmp/android_repositoryId.txt
14