summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-02-10 09:46:41 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-02-10 09:47:14 -0800
commitd7c05de2a43611ab25597b8fc299a67dd47c8a9e (patch)
tree15f3ce3121e6c02424441e8e7d591f9f2480733b /build.sc
parent31da68db49d95d8863f34392adf604df538d8cd5 (diff)
downloadmill-d7c05de2a43611ab25597b8fc299a67dd47c8a9e.tar.gz
mill-d7c05de2a43611ab25597b8fc299a67dd47c8a9e.tar.bz2
mill-d7c05de2a43611ab25597b8fc299a67dd47c8a9e.zip
Re-enable github artifact upload
Diffstat (limited to 'build.sc')
-rwxr-xr-xbuild.sc6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.sc b/build.sc
index a80c308a..f9066dbd 100755
--- a/build.sc
+++ b/build.sc
@@ -239,7 +239,9 @@ def publishVersion = T.input{
}
}
-def uploadToGithub(assembly: Path, authKey: String, release: String, label: String) = {
+def uploadToGithub(authKey: String) = T.command{
+ val (release, label) = publishVersion()
+
if (release != "unstable"){
scalaj.http.Http("https://api.github.com/repos/lihaoyi/mill/releases")
.postData(
@@ -254,5 +256,5 @@ def uploadToGithub(assembly: Path, authKey: String, release: String, label: Stri
.asString
}
- upload.apply(assembly, release, label, authKey)
+ upload.apply(releaseAssembly().path, release, label, authKey)
}