summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-02-04 20:41:28 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-02-04 20:47:46 -0800
commit00d0f979e2facd2c5d12d06dd2dc70c0b14c3c1f (patch)
treeeaa85b4b7fe6ec513f8545d5e1e43954e6e011ce /build.sc
parent74c4751ffc5abcc08f6dae0a336d76549161b444 (diff)
downloadmill-00d0f979e2facd2c5d12d06dd2dc70c0b14c3c1f.tar.gz
mill-00d0f979e2facd2c5d12d06dd2dc70c0b14c3c1f.tar.bz2
mill-00d0f979e2facd2c5d12d06dd2dc70c0b14c3c1f.zip
Cleanup
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)()