From 8498eae90bbe3b77d6e20976eb2649fd71929ce4 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Fri, 21 Apr 2017 19:01:59 -0400 Subject: [PATCH] debug for daemon upload, since its not working on appveyor --- build/release_on_tag.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build/release_on_tag.py b/build/release_on_tag.py index d1585c2d6..225cf348e 100644 --- a/build/release_on_tag.py +++ b/build/release_on_tag.py @@ -18,9 +18,11 @@ def main(): print 'Stopping as we are not currently on a tag' return + print "Current tag: " + current_tag + if 'GH_TOKEN' not in os.environ: print 'Must set GH_TOKEN in order to publish assets to a release' - return + return 1 gh_token = os.environ['GH_TOKEN'] auth = github.Github(gh_token) @@ -29,9 +31,10 @@ def main(): if not check_repo_has_tag(repo, current_tag): print 'Tag {} is not in repo {}'.format(current_tag, repo) # TODO: maybe this should be an error - return + return 1 daemon_zip = glob.glob(this_dir + '/dist/*.zip')[0] + print "Uploading " + daemon_zip release = get_release(repo, current_tag) upload_asset(release, daemon_zip, gh_token)