Skip to content

Commit

Permalink
Enable sonatype credentials and GPG passphrase to come from environmt…
Browse files Browse the repository at this point in the history
… variables during release
  • Loading branch information
scottsand-db committed Jan 13, 2023
1 parent 3ac120f commit c995b3e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,13 @@ lazy val releaseSettings = Seq(
Test / publishArtifact := false,
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
releaseCrossBuild := true,
pgpPassphrase := sys.env.get("PGP_PASSPHRASE").map(_.toArray),
credentials += Credentials(
"Sonatype Nexus Repository Manager",
"oss.sonatype.org",
sys.env.getOrElse("SONATYPE_USERNAME", ""),
sys.env.getOrElse("SONATYPE_PASSWORD", "")
),
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) {
Expand Down

0 comments on commit c995b3e

Please sign in to comment.