diff options
-rw-r--r-- | .travis.yml | 2 | ||||
-rwxr-xr-x | build.sc | 6 | ||||
-rwxr-xr-x | ci/publish-docs.sh | 2 | ||||
-rw-r--r-- | upload.sc | 6 |
4 files changed, 8 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml index 3898dbfa..8d34956d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,7 @@ matrix: jdk: oraclejdk8 script: - - curl -L -o ~/bin/mill https://github.com/lihaoyi/mill/releases/download/0.1.6/0.1.6 && chmod +x ~/bin/mill + - curl -L -o ~/bin/mill https://github.com/lihaoyi/mill/releases/download/0.1.7/0.1.7 && chmod +x ~/bin/mill - export PATH=~/bin/mill:$PATH - "$CI_SCRIPT" @@ -369,10 +369,10 @@ def uploadToGithub(authKey: String) = T.command{ if (releaseTag == label){ scalaj.http.Http("https://api.github.com/repos/lihaoyi/mill/releases") .postData( - upickle.json.write( + ujson.write( Js.Obj( - "tag_name" -> Js.Str(releaseTag), - "name" -> Js.Str(releaseTag) + "tag_name" -> releaseTag, + "name" -> releaseTag ) ) ) diff --git a/ci/publish-docs.sh b/ci/publish-docs.sh index 9b0acbde..869f2e8d 100755 --- a/ci/publish-docs.sh +++ b/ci/publish-docs.sh @@ -2,7 +2,7 @@ set -eux -curl -L -o ~/bin/amm https://github.com/lihaoyi/Ammonite/releases/download/1.0.3/2.12-1.0.3 && chmod +x ~/bin/amm +curl -L -o ~/bin/amm https://github.com/lihaoyi/Ammonite/releases/download/1.1.0/2.12-1.1.0 && chmod +x ~/bin/amm cd docs @@ -22,7 +22,7 @@ def apply(uploadedFile: Path, .header("Authorization", "token " + authKey) .asString.body - val parsed = upickle.json.read(body) + val parsed = ujson.read(body) println(body) @@ -41,7 +41,7 @@ def apply(uploadedFile: Path, .asString println(res.body) - val longUrl = upickle.json.read(res.body)("browser_download_url").str.toString + val longUrl = ujson.read(res.body)("browser_download_url").str.toString println("Long Url " + longUrl) @@ -49,4 +49,4 @@ def apply(uploadedFile: Path, println("Short Url " + shortUrl) shortUrl -}
\ No newline at end of file +} |