Skip to content

Commit 76bd8f7

Browse files
committed
Merge pull request #23 from retronym/admin/publish-settings.sbt
Use environment variables, rather than system properties
2 parents f68fa8d + d0cb888 commit 76bd8f7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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)