Skip to content

Commit d0cb888

Browse files
committed
Use environment variables, rather than system properties
1 parent ed3d813 commit d0cb888

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: admin/publish-settings.sbt

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
pgpPassphrase := Some(sys.props("PGP_PASSPHRASE").toArray)
1+
def env(key: String) = Option(System.getenv(key)).getOrElse("")
2+
3+
pgpPassphrase := Some(env("PGP_PASSPHRASE").toArray)
24

35
pgpPublicRing := file("admin/pubring.asc")
46

57
pgpSecretRing := file("admin/secring.asc")
68

7-
credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", sys.props("SONA_USER"), sys.props("SONA_PASS"))
9+
credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", env("SONA_USER"), env("SONA_PASS"))

0 commit comments

Comments
 (0)