Skip to content

Commit 97fe4bf

Browse files
committed
updates github release script
1 parent f372ba2 commit 97fe4bf

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.circleci/release-github.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
#!/bin/bash -eu
22

3-
body="### New Features\r\n\r\n### Closed Bugs\r\n\r\n### Improvements\r\n"
3+
body="### New Features\r\n\r\n### Closed Bugs\r\n\r\n### Improvements\r\n\r\n### Misc\r\n"
44

55
echo "Creating a GitHub release with tag [${VERSION}] and name [${VERSION_NAME}]"
66

77
responseJson=$(curl \
8-
-u ${GITHUB_USERNAME}:${GITHUB_TOKEN} \
9-
-H "Content-Type: application/vnd.github.v3+json" \
8+
-X POST \
9+
-H "Accept: application/vnd.github+json" \
10+
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
11+
https://api.github.com/repos/build-canaries/nevergreen/releases \
1012
-d "{\"tag_name\": \"v${VERSION}\", \"target_commitish\": \"main\", \"name\": \"${VERSION_NAME}\", \"body\": \"${body}\", \"draft\": true, \"prerelease\": false}" \
1113
https://api.github.com/repos/build-canaries/nevergreen/releases)
1214

@@ -17,7 +19,9 @@ uploadUrl=$(echo ${responseJson} | jq -r '.upload_url' | sed "s|{?name,label}||"
1719
echo "Adding the nevergreen-standalone.jar as an asset using URL [${uploadUrl}]"
1820

1921
curl \
20-
-u ${GITHUB_USERNAME}:${GITHUB_TOKEN} \
22+
-X POST \
23+
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
24+
-H "Accept: application/vnd.github+json" \
2125
-H "Content-Type: application/zip" \
2226
--data-binary '@./target/nevergreen-standalone.jar' \
2327
"${uploadUrl}?name=nevergreen-standalone.jar"

.circleci/release-tweet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -eu
22

3-
status="Nevergreen v${VERSION} ${VERSION_NAME} has been released! Find out more from https://github.com/build-canaries/nevergreen or try it for yourself at https://nevergreen.io"
3+
status="Nevergreen v${VERSION} ${VERSION_NAME} has been released! Find out more from https://github.com/build-canaries/nevergreen"
44

55
echo "${status}"
66

.talismanrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)