Skip to content

Commit

Permalink
Revert "Debug"
Browse files Browse the repository at this point in the history
This reverts commit fad4ad3.
  • Loading branch information
stoyicker committed Apr 18, 2021
1 parent b94d5b7 commit 6f3b4bd
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .circleci/release_github.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
#!/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\",
\"name\": \"$THIS_TAG\",
\"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 \
Expand All @@ -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} \
Expand All @@ -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} \
Expand Down

0 comments on commit 6f3b4bd

Please sign in to comment.