From 2061248224ce2e7702b853c4897351fcb2898c92 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 6 Nov 2018 12:37:35 +0400 Subject: [PATCH] Push stable / beta commits to launchpad on release. --- Telegram/build/release.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Telegram/build/release.py b/Telegram/build/release.py index 887a2d1e9a..e1ac78055c 100644 --- a/Telegram/build/release.py +++ b/Telegram/build/release.py @@ -194,6 +194,14 @@ if r.status_code == 404: })) checkResponseCode(r, 201) +tagname = 'v' + version +call("git fetch origin".split()); +if stable == 1: + call("git push launchpad {}:master".format(tagname).split()) +else: + call("git push launchpad {}:beta".format(tagname).split()) +call("git push --tags launchpad".split()) + r = requests.get(url + 'repos/telegramdesktop/tdesktop/releases/tags/v' + version) checkResponseCode(r, 200);