diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-03-02 20:21:22 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-03-02 20:21:22 -0800 |
commit | 2bc394a02ec18aadaa34c95805e94dab46aae465 (patch) | |
tree | 8872476a42363116073122c84f0da3ce30b5538d | |
parent | 09667c4d1d720a7ee8e9ff88e54022c1f52fd208 (diff) | |
download | mill-2bc394a02ec18aadaa34c95805e94dab46aae465.tar.gz mill-2bc394a02ec18aadaa34c95805e94dab46aae465.tar.bz2 mill-2bc394a02ec18aadaa34c95805e94dab46aae465.zip |
- Bump ammonite version
- Upload unstable binaries to same github release as the last stable release
-rwxr-xr-x | build.sc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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( |