diff options
Diffstat (limited to 'build.sc')
-rwxr-xr-x | build.sc | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -243,7 +243,23 @@ def uploadToGithub(assembly: Path, authKey: String, release: String, label: Stri } } -def releaseCI(githubAuthKey: String, sonatypeCreds: String, gpgPassphrase: String) = +def releaseCI(githubAuthKey: String, + sonatypeCreds: String, + gpgPassphrase: String, + gpgPrivateKey: String) = + if (isMasterCommit) T.command() + else { + write(home / "gpg.key", java.util.Base64.getDecoder.decode(gpgPrivateKey)) + %('gpg, 'import, home / "gpg.key")(pwd) + T.command{ + releaseManual(githubAuthKey, sonatypeCreds, gpgPassphrase)() + } + } + + +def releaseManual(githubAuthKey: String, + sonatypeCreds: String, + gpgPassphrase: String) = if (isMasterCommit) T.command() else T.command{ moduledefs.publish(sonatypeCreds, gpgPassphrase)() |