diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-10 09:46:41 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-10 09:47:14 -0800 |
commit | d7c05de2a43611ab25597b8fc299a67dd47c8a9e (patch) | |
tree | 15f3ce3121e6c02424441e8e7d591f9f2480733b /build.sc | |
parent | 31da68db49d95d8863f34392adf604df538d8cd5 (diff) | |
download | mill-d7c05de2a43611ab25597b8fc299a67dd47c8a9e.tar.gz mill-d7c05de2a43611ab25597b8fc299a67dd47c8a9e.tar.bz2 mill-d7c05de2a43611ab25597b8fc299a67dd47c8a9e.zip |
Re-enable github artifact upload
Diffstat (limited to 'build.sc')
-rwxr-xr-x | build.sc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) } |