the last thing worked, now just replace json with file
This commit is contained in:
parent
4ad978f3ef
commit
250ed2bd6a
1 changed files with 2 additions and 2 deletions
|
@ -131,10 +131,10 @@ def _curl_uploader(upload_uri, asset_to_upload, token):
|
||||||
'-X', 'POST',
|
'-X', 'POST',
|
||||||
'-u', ':{}'.format(os.environ['GH_TOKEN']),
|
'-u', ':{}'.format(os.environ['GH_TOKEN']),
|
||||||
'--header', 'Content-Type: application/json',
|
'--header', 'Content-Type: application/json',
|
||||||
'-d', '{"some_key": "some_value"}',
|
'--data-binary', str('@{}'.format(asset_to_upload)),
|
||||||
str(upload_uri)
|
str(upload_uri)
|
||||||
]
|
]
|
||||||
# '--data-binary', str('@{}'.format(asset_to_upload)),
|
#'-d', '{"some_key": "some_value"}',
|
||||||
print 'Calling curl:'
|
print 'Calling curl:'
|
||||||
print cmd
|
print cmd
|
||||||
print
|
print
|
||||||
|
|
Loading…
Add table
Reference in a new issue