From 9c153a1dd498b6c927478c352b3d4aea88433e2d Mon Sep 17 00:00:00 2001 From: Christopher Baklid Date: Sun, 20 May 2018 18:03:07 +0200 Subject: removes the python deploy script in favour of a curl command (#74) --- scripts/deploy.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 scripts/deploy.py (limited to 'scripts/deploy.py') diff --git a/scripts/deploy.py b/scripts/deploy.py deleted file mode 100644 index 20d8edd5..00000000 --- a/scripts/deploy.py +++ /dev/null @@ -1,20 +0,0 @@ -import os - -import requests - -branch = os.environ.get("TRAVIS_BRANCH") -url = os.environ.get("AUTODEPLOY_WEBHOOK") -token = os.environ.get("AUTODEPLOY_TOKEN") - -PR = os.environ.get("TRAVIS_PULL_REQUEST") - -print('branch:', branch) -print('is_pr:', PR) - -if branch == 'master' and PR == 'false': - print("deploying..") - result = requests.get(url=url, headers={'token': token}) - print(result.text) - -else: - print("skipping deploy") -- cgit v1.2.3