From 75a750328ae7eed52f48ff6452fa1a752744f607 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sat, 7 Aug 2021 21:49:02 +0200 Subject: [PATCH] Fix release.py script, was using an old api endpoint --- package/release.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package/release.py b/package/release.py index 2e92512..307c28a 100755 --- a/package/release.py +++ b/package/release.py @@ -126,10 +126,13 @@ def main(): - [Debian Package]({debian_url}) ([sha256]({debian_sha_url})) - Docker image: registry.gitlab.com/{project_name}:{release_tag}''' - post_body: str = json.dumps({'description': augmented_changelog}) + post_body: str = json.dumps({ + 'tag_name': release_tag, + 'description': augmented_changelog + }) gitlab_release_api_url: str = \ - f'https://gitlab.com/api/v4/projects/{project_id}/repository/tags/{release_tag}/release' + f'https://gitlab.com/api/v4/projects/{project_id}/releases' headers: Dict[str, str] = { 'Private-Token': api_token, 'Content-Type': 'application/json; charset=utf-8',