diff --git a/Makefile b/Makefile index 812c641..7c6516c 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ remove-dev: github-release: git push - python3 -m util.github-release + python3 -m util.github_release bump: python3 -m util.bump_version_post_release diff --git a/util/github_release.py b/util/github_release.py index 1f3cf38..cd658d4 100644 --- a/util/github_release.py +++ b/util/github_release.py @@ -31,6 +31,7 @@ from trlc.version import TRLC_VERSION import util.changelog + def main(): username = os.environ.get("GITHUB_USERNAME", None) if username is None: @@ -59,5 +60,6 @@ def main(): r = requests.post(api_endpoint, auth=auth, data=json.dumps(data)) print(r) + if __name__ == "__main__": main()