From 250ed2bd6a492a762b39aee2844d6d2b70581d96 Mon Sep 17 00:00:00 2001 From: jobevers Date: Thu, 23 Feb 2017 11:45:23 -0600 Subject: [PATCH] the last thing worked, now just replace json with file --- release_on_tag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release_on_tag.py b/release_on_tag.py index d77026f31..d6d9539aa 100644 --- a/release_on_tag.py +++ b/release_on_tag.py @@ -131,10 +131,10 @@ def _curl_uploader(upload_uri, asset_to_upload, token): '-X', 'POST', '-u', ':{}'.format(os.environ['GH_TOKEN']), '--header', 'Content-Type: application/json', - '-d', '{"some_key": "some_value"}', + '--data-binary', str('@{}'.format(asset_to_upload)), str(upload_uri) ] - # '--data-binary', str('@{}'.format(asset_to_upload)), + #'-d', '{"some_key": "some_value"}', print 'Calling curl:' print cmd print