summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-02-04 23:03:05 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-02-04 23:03:05 -0800
commit94f1ecf85b792e789c65ed88fcca5360f5fce0fb (patch)
tree0688e4d55a6b6b4b111c046fe334ababf24614f5 /build.sc
parent1635aa9cb784f0a1ac60b5f3ba2e351acddc4063 (diff)
downloadmill-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-xbuild.sc23
1 files changed, 15 insertions, 8 deletions
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)
()