-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
c7ab615
commit 0a8550a
Showing
3 changed files
with
43 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/build | ||
/build | ||
out.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#! /bin/bash | ||
|
||
################################# | ||
# This script deploys Open measurement SDK. It must be called only when | ||
# omsdk-android module have a new version. | ||
################################# | ||
|
||
function echoX() { | ||
echo -e "PREBID DEPLOY-LOG: $@" | ||
} | ||
|
||
# $1 - absolute pom path, $2 - absolute aar path, $3 - absolute source path, $4 - absolute javadoc path | ||
function mavenDeploy() { | ||
echoX "Deploying ${2} on Maven..." | ||
|
||
mvn gpg:sign-and-deploy-file "-DpomFile=${1}" "-Dfile=${2}" "-DrepositoryId=ossrh" "-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/" "-DstagingRepositoryId=ossrh" "-Dsources=${3}" "-Djavadoc=${4}" || { | ||
echoX "Deploy failed!" | ||
echoX "End Script" | ||
exit 1 | ||
} | ||
|
||
echoX "Please complete the release process by promoting the jar at https://oss.sonatype.org/#stagingRepositories" | ||
} | ||
|
||
BASE_DIR="$PWD" | ||
DEPLOY_DIR_ABSOLUTE="$BASE_DIR/filesToDeploy" | ||
|
||
rm -r "$DEPLOY_DIR_ABSOLUTE" || true | ||
mkdir "$DEPLOY_DIR_ABSOLUTE" | ||
|
||
cd .. | ||
sh ./buildPrebidMobile.sh | ||
cp -r ../generated/* "$DEPLOY_DIR_ABSOLUTE" || true | ||
|
||
mavenDeploy $"$BASE_DIR/PrebidMobile-open-measurement-pom.xml" $"$DEPLOY_DIR_ABSOLUTE/omsdk.jar" $"$BASE_DIR/stub.jar" $"$BASE_DIR/stub.jar" | ||
|
||
echoX "End Script" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters