Skip to content

Commit

Permalink
Merge branch 'fixReleaseToGithub' into 'master'
Browse files Browse the repository at this point in the history
Also fix getting the release_id from github

See merge request transip/restapi-cli-client!132
  • Loading branch information
dionbosschieter committed Nov 5, 2021
2 parents 200c413 + 86da94c commit 4b524ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/release_to_github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ json_output=$(curl -H "Authorization: token ${GITHUB_TOKEN}" \
-X POST "https://api.github.com/repos/transip/tipctl/releases" \
-d "{\"tag_name\": \"${TAG_VERSION}\", \"name\": \"${TAG_VERSION}\", \"body\": ${description}, \"draft\": true, \"prerelease\": false}")

release_id=$(echo $json_output | python -c 'import json,sys;print json.load(sys.stdin)["id"]')
release_id=$(echo $json_output | python -c 'import json,sys;print(json.load(sys.stdin)["id"])')
name_of_asset=$(basename $FILE_TO_PUSH)

echo "Created release ${release_id}, lets upload our artifact to this release"
Expand Down

0 comments on commit 4b524ac

Please sign in to comment.