From 88cb49dcc4a858ce26a367673dbabf754037961b Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sat, 24 Apr 2021 20:27:53 -0700 Subject: [PATCH] Fix release script based on GitHub authentication query parameter deprecation. --- scripts/release | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/release b/scripts/release index e8b4a3a..f728390 100755 --- a/scripts/release +++ b/scripts/release @@ -38,7 +38,8 @@ twine upload -r pypi dist/borgmatic-*-py3-none-any.whl dist/borgmatic-*-py3-none release_changelog="$(cat NEWS | sed '/^$/q' | grep -v '^\S')" escaped_release_changelog="$(echo "$release_changelog" | sed -z 's/\n/\\n/g' | sed -z 's/\"/\\"/g')" curl --silent --request POST \ - "https://projects.torsion.org/api/v1/repos/witten/borgmatic/releases?access_token=$projects_token" \ + "https://projects.torsion.org/api/v1/repos/witten/borgmatic/releases" \ + --header "Authorization: token $projects_token" \ --header "Accept: application/json" \ --header "Content-Type: application/json" \ --data "{\"body\": \"$escaped_release_changelog\", \"draft\": false, \"name\": \"borgmatic $version\", \"prerelease\": false, \"tag_name\": \"$version\"}"