diff --git a/tools/release/deploy_snapshot.sh b/tools/release/deploy_snapshot.sh index 413b4b12..06b2be7b 100755 --- a/tools/release/deploy_snapshot.sh +++ b/tools/release/deploy_snapshot.sh @@ -5,25 +5,17 @@ # Adapted from https://coderwall.com/p/9b_lfq and # http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/ -SLUG="dropbox/AffectedModuleDetector" -JDK="oraclejdk8" BRANCH="main" set -e -if [ "$TRAVIS_REPO_SLUG" != "$SLUG" ]; then - echo "Skipping snapshot deployment: wrong repository. Expected '$SLUG' but was '$TRAVIS_REPO_SLUG'." -elif [ "$TRAVIS_JDK_VERSION" != "$JDK" ]; then - echo "Skipping snapshot deployment: wrong JDK. Expected '$JDK' but was '$TRAVIS_JDK_VERSION'." -elif [ "$TRAVIS_PULL_REQUEST" != "false" ]; then - echo "Skipping snapshot deployment: was pull request." -elif [ "$TRAVIS_BRANCH" != "$BRANCH" ]; then - echo "Skipping snapshot deployment: wrong branch. Expected '$BRANCH' but was '$TRAVIS_BRANCH'." +if [ "${GITHUB_REF##*/}" != "$BRANCH" ]; then + echo "Skipping snapshot deployment: wrong branch. Expected '$BRANCH' but was '${GITHUB_REF##*/}'." else - echo "Deploying '$SLUG'..." + echo "Deploying AffectedModuleDetector..." openssl aes-256-cbc -md sha256 -d -in tools/release/secring.gpg.aes -out tools/release/secring.gpg -k "${ENCRYPT_KEY}" # https://docs.gradle.org/current/userguide/signing_plugin.html#sec:signatory_credentials ./gradlew publishMavenPublicationToMavenRepository -PSONATYPE_NEXUS_USERNAME="${SONATYPE_USERNAME}" -PSONATYPE_NEXUS_PASSWORD="${SONATYPE_PASSWORD}" -Psigning.keyId="${SIGNING_ID}" -Psigning.password="${SIGNING_PASSWORD}" -Psigning.secretKeyRingFile=${PWD}/tools/release/secring.gpg - echo "'$SLUG' deployed!" + echo "AffectedModuleDetector deployed!" fi \ No newline at end of file diff --git a/tools/release/secring.gpg.aes b/tools/release/secring.gpg.aes index fb721e8d..63138e8e 100644 Binary files a/tools/release/secring.gpg.aes and b/tools/release/secring.gpg.aes differ