@@ -0,0 +1,933 @@
+import os%0A%0Aimport requests%0A%0Afrom setup import get_version_from_changelog%0A%0AGITHUB_API_TOKEN = os.environ%5B%22GITHUB_API_TOKEN%22%5D%0A%0A%0Adef make_github_release():%0A    version = get_version_from_changelog()%0A    tag = f%22v%7Bversion%7D%22%0A%0A    with open(%22CHANGELOG.md%22, %22r%22) as f:%0A        changelog_data = f.read()%0A%0A    changelog_lines = %5B%5D%0A%0A    for line in changelog_data.splitlines():%0A        if line.startswith(%22# %22):%0A            if line != f%22# %7Btag%7D%22:%0A                break%0A            continue%0A%0A        changelog_lines.append(line)%0A%0A    changelog = %22%5Cn%22.join(changelog_lines).strip()%0A%0A    response = requests.post(%0A        %22https://api.github.com/repos/fizzadar/pyinfra/releases%22,%0A        json=%7B%0A            %22tag_name%22: tag,%0A            %22body%22: changelog,%0A        %7D,%0A        headers=%7B%0A            %22Authorization%22: f%22token %7BGITHUB_API_TOKEN%7D%22,%0A        %7D,%0A    )%0A    response.raise_for_status()%0A%0A%0Aif __name__ == %22__main__%22:%0A    make_github_release()%0A

Add github release script