Skip to content

Commit

Permalink
[#360][CI] fix release url
Browse files Browse the repository at this point in the history
  • Loading branch information
bamthomas committed Feb 25, 2020
1 parent 00e0357 commit e4b5181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e4b5181

Please sign in to comment.