summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-03-02 20:21:22 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-03-02 20:21:22 -0800
commit2bc394a02ec18aadaa34c95805e94dab46aae465 (patch)
tree8872476a42363116073122c84f0da3ce30b5538d /build.sc
parent09667c4d1d720a7ee8e9ff88e54022c1f52fd208 (diff)
downloadmill-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
Diffstat (limited to 'build.sc')
-rwxr-xr-xbuild.sc6
1 files changed, 3 insertions, 3 deletions
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(