diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-04 20:41:28 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-04 20:47:46 -0800 |
commit | 00d0f979e2facd2c5d12d06dd2dc70c0b14c3c1f (patch) | |
tree | eaa85b4b7fe6ec513f8545d5e1e43954e6e011ce /build.sc | |
parent | 74c4751ffc5abcc08f6dae0a336d76549161b444 (diff) | |
download | mill-00d0f979e2facd2c5d12d06dd2dc70c0b14c3c1f.tar.gz mill-00d0f979e2facd2c5d12d06dd2dc70c0b14c3c1f.tar.bz2 mill-00d0f979e2facd2c5d12d06dd2dc70c0b14c3c1f.zip |
Cleanup
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)() |