From 2bc394a02ec18aadaa34c95805e94dab46aae465 Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Fri, 2 Mar 2018 20:21:22 -0800 Subject: - Bump ammonite version - Upload unstable binaries to same github release as the last stable release --- build.sc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build.sc') diff --git a/build.sc b/build.sc index d0b8db56..33678f8c 100755 --- a/build.sc +++ b/build.sc @@ -83,7 +83,7 @@ object core extends MillModule { def ivyDeps = Agg( ivy"com.lihaoyi::sourcecode:0.1.4", - ivy"com.lihaoyi:::ammonite:1.0.3-49-7fa03d0", + ivy"com.lihaoyi:::ammonite:1.0.5", ivy"jline:jline:2.14.5" ) @@ -309,14 +309,14 @@ def publishVersion = T.input{ %%('git, "rev-list", gitHead(), "--count")(pwd).out.trim.toInt - %%('git, "rev-list", latestTaggedVersion, "--count")(pwd).out.trim.toInt - ("unstable", s"$latestTaggedVersion-$commitsSinceLastTag-${gitHead().take(6)}") + (latestTaggedVersion, s"$latestTaggedVersion-$commitsSinceLastTag-${gitHead().take(6)}") } } def uploadToGithub(authKey: String) = T.command{ val (releaseTag, label) = publishVersion() - if (releaseTag != "unstable"){ + if (releaseTag == label){ scalaj.http.Http("https://api.github.com/repos/lihaoyi/mill/releases") .postData( upickle.json.write( -- cgit v1.2.3