Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bsclifton committed Feb 26, 2018
1 parent 7d81b62 commit 948c0a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
TARGET_ARCH= os.environ['TARGET_ARCH'] if os.environ.has_key('TARGET_ARCH') else 'x64'

def main():
print('Running upload...')
github = GitHub(auth_token())
releases = github.repos(BROWSER_LAPTOP_REPO).releases.get()
tag = 'v' + json.load(open('package.json'))['version']
Expand All @@ -20,7 +21,7 @@ def main():
release = create_or_get_release_draft(github, releases, tag,
tag_exists)
for f in get_files_to_upload():
upload_browser_laptop(github,release, f)
upload_browser_laptop(github, release, f)

def get_channel_display_name():
d = {'dev': 'Release', 'beta': 'Beta', 'development': 'Development', 'nightly': 'Nightly'}
Expand All @@ -36,6 +37,7 @@ def get_files_to_upload():

def upload_browser_laptop(github, release, file_path):
filename = os.path.basename(file_path)
print('upload_browser_laptop: ' + filename)
try:
for asset in release['assets']:
if asset['name'] == filename:
Expand Down

0 comments on commit 948c0a1

Please sign in to comment.