diff --git a/.circleci/release_github.sh b/.circleci/release_github.sh index e6dce0b..740bef4 100755 --- a/.circleci/release_github.sh +++ b/.circleci/release_github.sh @@ -1,12 +1,10 @@ #!/bin/bash -set -xe +set -e uploadReleaseToGitHub() { git fetch --tags THIS_TAG=$(git describe --tags --abbrev=0) - echo "This tag: $THIS_TAG" - BODY="{ \"tag_name\": \"$THIS_TAG\", \"target_commitish\": \"master\", @@ -14,8 +12,6 @@ uploadReleaseToGitHub() { \"body\": \" \" }" - echo "url: https://api.github.com/repos/${REPO_SLUG}/releases" - # Create the release in GitHub and extract its id from the response RESPONSE_BODY=$(curl -s \ -v \ @@ -29,13 +25,10 @@ uploadReleaseToGitHub() { # Extract the upload_url value UPLOAD_URL=$(echo ${RESPONSE_BODY} | jq -r .upload_url) - echo "Upload url: $UPLOAD_URL" - cp annotations/build/libs/annotations.jar . # Attach annotations ANNOTATIONS_UPLOAD_URL=$(echo ${UPLOAD_URL} | sed "s/{?name,label}/?name=annotations-${THIS_TAG}.jar/") - echo "Annotations upload url: ${ANNOTATIONS_UPLOAD_URL}" curl -s \ -v \ -u ${CIRCLE_USERNAME}:${GITHUB_TOKEN} \ @@ -49,7 +42,6 @@ uploadReleaseToGitHub() { # Attach processor-java PROCESSOR_JAVA_UPLOAD_URL=$(echo ${UPLOAD_URL} | sed "s/{?name,label}/?name=processor-java-${THIS_TAG}.jar/") - echo "Processor java upload url: ${PROCESSOR_JAVA_UPLOAD_URL}" curl -s \ -v \ -u ${CIRCLE_USERNAME}:${GITHUB_TOKEN} \