Skip to content
Permalink
Browse files

Updated deploy command to use publish

  • Loading branch information...
sksamuel committed Jan 28, 2019
1 parent e2f2016 commit c3a9b4edab19b5d980ca3330c53287997cdfd323
Showing with 3 additions and 5 deletions.
  1. +2 −2 build.gradle
  2. +1 −3 snapshot_deploy.sh
@@ -43,8 +43,8 @@ allprojects {
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
url = isReleaseVersion ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = ossrhUsername
password = ossrhPassword
username = System.getProperty("OSSRH_USERNAME") ?: ossrhUsername
password = System.getProperty("OSSRH_PASSWORD") ?: ossrhPassword
}
}
}
@@ -1,6 +1,4 @@
#!/usr/bin/env bash
if [ "$TRAVIS_BRANCH" = 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then
GPG_TTY=$(tty)
export GPG_TTY
./gradlew uploadArchives -PossrhUsername=${OSSRH_USERNAME} -PossrhPassword=${OSSRH_PASSWORD}
./gradlew publish
fi

0 comments on commit c3a9b4e

Please sign in to comment.
You can’t perform that action at this time.