From 94f1ecf85b792e789c65ed88fcca5360f5fce0fb Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Sun, 4 Feb 2018 23:03:05 -0800 Subject: Fix github release creation, add new batch publishing capability to try and speed up publishing lots of modules --- build.sc | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'build.sc') diff --git a/build.sc b/build.sc index c77a9eda..ea016d96 100755 --- a/build.sc +++ b/build.sc @@ -227,7 +227,7 @@ def publishVersion = T.input{ } def uploadToGithub(assembly: Path, authKey: String, release: String, label: String) = { - if (release == "unstable"){ + if (release != "unstable"){ scalaj.http.Http("https://api.github.com/repos/lihaoyi/mill/releases") .postData( upickle.json.write( @@ -261,13 +261,20 @@ def releaseCI(githubAuthKey: String, def releaseManual(githubAuthKey: String, sonatypeCreds: String, gpgPassphrase: String) = T.command{ - moduledefs.publish(sonatypeCreds, gpgPassphrase)() - core.publish(sonatypeCreds, gpgPassphrase)() - scalalib.publish(sonatypeCreds, gpgPassphrase)() - scalajslib.publish(sonatypeCreds, gpgPassphrase)() - scalaworker.publish(sonatypeCreds, gpgPassphrase)() - scalajslib.jsbridges("0.6").publish(sonatypeCreds, gpgPassphrase)() - scalajslib.jsbridges("1.0").publish(sonatypeCreds, gpgPassphrase)() + 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