From b97acb6f671502f57134932d0e7908e333b7cbbe Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Tue, 6 Feb 2018 22:14:17 -0800 Subject: all T.commands to take targets as CLI arguments, and use that to get rid of our custom releaseCI/releaseManual commands --- build.sc | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'build.sc') diff --git a/build.sc b/build.sc index ad21c20c..d31b66d8 100755 --- a/build.sc +++ b/build.sc @@ -243,39 +243,3 @@ def uploadToGithub(assembly: Path, authKey: String, release: String, label: Stri upload.apply(assembly, release, label, authKey) } - -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) = T.command{ - mill.scalalib.PublishModule.publishAll( - sonatypeCreds = sonatypeCreds, - gpgPassphrase = gpgPassphrase, - modules = Seq( - moduledefs, - core, - scalalib, - scalajslib, - scalaworker, - scalajslib.jsbridges("0.6"), - scalajslib.jsbridges("1.0") - ) - )() - - val (release, label) = publishVersion() - uploadToGithub(releaseAssembly().path, githubAuthKey, release, label) - () -} -- cgit v1.2.3