Skip to content

Commit 5089acd

Browse files
committed
Switch away from deprecated github API
1 parent e0b73f1 commit 5089acd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/release.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ def publish_release(args: argparse.Namespace) -> None:
120120
git('push', repo_url, 'tag', version)
121121

122122
# publish the release
123-
post_url = '/repos/{}/releases?access_token={}'.format(GITHUB_REPO, args.token)
123+
post_url = '/repos/{}/releases'.format(GITHUB_REPO)
124124
headers = {
125+
'Authorization': 'token {}'.format(args.token),
125126
'User-Agent': 'Sublime Text',
126127
'Content-type': 'application/json',
127128
}

0 commit comments

Comments
 (0)