diff options
Diffstat (limited to 'deploy.py')
-rw-r--r-- | deploy.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/deploy.py b/deploy.py deleted file mode 100644 index 853d2b0c5..000000000 --- a/deploy.py +++ /dev/null @@ -1,19 +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") |