We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f68fa8d + d0cb888 commit 76bd8f7Copy full SHA for 76bd8f7
admin/publish-settings.sbt
@@ -1,7 +1,9 @@
1
-pgpPassphrase := Some(sys.props("PGP_PASSPHRASE").toArray)
+def env(key: String) = Option(System.getenv(key)).getOrElse("")
2
+
3
+pgpPassphrase := Some(env("PGP_PASSPHRASE").toArray)
4
5
pgpPublicRing := file("admin/pubring.asc")
6
7
pgpSecretRing := file("admin/secring.asc")
8
-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