diff options
Diffstat (limited to '.ci/build')
-rwxr-xr-x | .ci/build | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -7,13 +7,21 @@ sbt scalafmtCheck +test if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_TAG" =~ ^v[0-9].* ]]; then # Setup gpg keys gpg --keyserver keyserver.ubuntu.com --recv-key "DC7751D77486D755815C04AB488F99C904F077E8" - openssl aes-256-cbc -K "$encrypted_c6e2aee6c53f_key" -iv "$encrypted_c6e2aee6c53f_iv" -in .ci/sec.gpg.enc -out sec.gpg -d + openssl aes-256-cbc \ + -K "$encrypted_c6e2aee6c53f_key" \ + -iv "$encrypted_c6e2aee6c53f_iv" \ + -in .ci/sec.gpg.enc \ + -out sec.gpg -d gpg --import sec.gpg # Set up publishing settings and credentials cat <<EOF > credentials.sbt - useGpg := true - pgpSigningKey := Some(0x488F99C904F077E8l) + credentials in Global += Credentials( + "GnuPG Key ID", + "gpg", + "DC7751D77486D755815C04AB488F99C904F077E8", + "ignored" + ) credentials += Credentials( "Sonatype Nexus Repository Manager", "oss.sonatype.org", @@ -23,5 +31,5 @@ if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_TAG" =~ ^v[0-9].* ]]; then EOF # Publish and release - sbt +publishSigned sonatypeRelease + sbt +publish sonatypeRelease fi |