Upload the index.json to S3

This commit is contained in:
Cheng Zhao 2015-01-20 22:09:30 -08:00
parent 62756a79df
commit 7b621262ea

View file

@ -190,6 +190,14 @@ def upload_node(bucket, access_key, secret_key, version):
s3put(bucket, access_key, secret_key, OUT_DIR,
'atom-shell/dist/{0}'.format(version), [node_lib])
# Upload the index.json
atom_shell = os.path.join(OUT_DIR, 'atom.exe')
index_json = os.path.join(OUT_DIR, 'index.json')
execute([atom_shell,
os.path.join(SOURCE_ROOT, 'script', 'dump-version-info.js'),
index_json])
s3put(bucket, access_key, secret_key, OUT_DIR, 'atom-shell', [index_json])
def auth_token():
token = os.environ.get('ATOM_SHELL_GITHUB_TOKEN')