Skip to content

Instantly share code, notes, and snippets.

@timfel
Last active December 18, 2015 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timfel/5755136 to your computer and use it in GitHub Desktop.
Save timfel/5755136 to your computer and use it in GitHub Desktop.
import os
import requests
build_name = os.environ['filename']
f = open(build_name, "rb")
response = requests.post('http://www.topazruby.com/builds/create/', {
'build_secret': os.environ['BUILD_SECRET'],
'sha1': os.environ['sha1'],
'platform': 'windows32',
'success': 'true',
}, files={'build': (build_name, f)})
response.raise_for_status()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment