diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-04 23:03:05 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-04 23:03:05 -0800 |
commit | 94f1ecf85b792e789c65ed88fcca5360f5fce0fb (patch) | |
tree | 0688e4d55a6b6b4b111c046fe334ababf24614f5 /build.sc | |
parent | 1635aa9cb784f0a1ac60b5f3ba2e351acddc4063 (diff) | |
download | mill-94f1ecf85b792e789c65ed88fcca5360f5fce0fb.tar.gz mill-94f1ecf85b792e789c65ed88fcca5360f5fce0fb.tar.bz2 mill-94f1ecf85b792e789c65ed88fcca5360f5fce0fb.zip |
Fix github release creation, add new batch publishing capability to try and speed up publishing lots of modules0.0.5
Diffstat (limited to 'build.sc')
-rwxr-xr-x | build.sc | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -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) () |