From 257afd35255b15cdbce2d52a081bbe0a0be824ad Mon Sep 17 00:00:00 2001 From: Rolzad73 Date: Sun, 5 Feb 2017 00:29:00 -0500 Subject: [PATCH] - added more meaning to release upload script case --- appveyor.yml | 2 -- tools/upload-binaries.py | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 3883a20ac..ea8ca42eb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -69,8 +69,6 @@ after_deploy: # to run your custom scripts instead of provider deployments deploy_script: - - echo %APPVEYOR_REPO_COMMIT% - - echo %APPVEYOR_REPO_BRANCH% - "C:/Python27/python.exe tools/upload-binaries.py -t %GH_TOKEN% -s %APPVEYOR_REPO_COMMIT% -l projects/mtg/bin/Wagic-windows.zip -r Wagic-windows.zip -b %APPVEYOR_REPO_BRANCH%" # to disable deployment diff --git a/tools/upload-binaries.py b/tools/upload-binaries.py index d09c651a6..e7d477388 100644 --- a/tools/upload-binaries.py +++ b/tools/upload-binaries.py @@ -51,6 +51,9 @@ def main(): if (options.token and options.sha and options.local and options.remote and (options.branch == 'master' or options.branch == 'travis_mac_osx')): gh = login(token = options.token) + elif (options.branch != 'master' and options.branch != 'travis_mac_osx'): + print '!branch is not master or travis_mac_osx! -> ' + options.branch + print '-will not upload-' else: parser.print_help() return