From e4b5181aee934268a62f0bf360488f09d4f4b31d Mon Sep 17 00:00:00 2001 From: Bruno Thomas Date: Tue, 25 Feb 2020 17:22:18 +0000 Subject: [PATCH] [#360][CI] fix release url --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 19261892c..770f89b7e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -81,7 +81,7 @@ jobs: - run: name: deploy datashare dist jar to github release command: | - upload_url=$(curl -s -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/repos/ICIJ/datashare/releases/tags/$CIRCLE_TAG" | jq -r '.upload_url') + upload_url=$(curl -s -H "Authorization: token $GITHUB_TOKEN" -d "{\"tag_name\":\"${CIRCLE_TAG}\", \"name\":\"${CIRCLE_TAG}\",\"body\":\"release ${CIRCLE_TAG}\"}" "https://api.github.com/repos/ICIJ/datashare/releases" | jq -r '.upload_url') upload_url="${upload_url%\{*}" echo "uploading asset to release url: $upload_url" curl -s -m 120 -H "Authorization: token $GITHUB_TOKEN" -H "Content-Type: application/java-archive" --data-binary @datashare-dist/target/datashare-dist-${CIRCLE_TAG}.jar "$upload_url?name=datashare-dist-${CIRCLE_TAG}.jar&label=datashare-dist-${CIRCLE_TAG}.jar"