summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
Diffstat (limited to 'build.sc')
-rwxr-xr-xbuild.sc18
1 files changed, 17 insertions, 1 deletions
diff --git a/build.sc b/build.sc
index a2062409..ff819daf 100755
--- a/build.sc
+++ b/build.sc
@@ -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)()