Upload to S3 with readable version.
This commit is contained in:
parent
3da4736a2b
commit
a27009f0a9
2 changed files with 6 additions and 2 deletions
|
@ -87,3 +87,7 @@ def safe_mkdir(path):
|
|||
except OSError as e:
|
||||
if e.errno != errno.EEXIST:
|
||||
raise
|
||||
|
||||
|
||||
def get_atom_shell_version():
|
||||
return subprocess.check_output(['git', 'describe', '--tags']).strip()
|
||||
|
|
|
@ -51,10 +51,10 @@ def dist_newer_than_head():
|
|||
def upload():
|
||||
os.chdir(SOURCE_ROOT)
|
||||
bucket, access_key, secret_key = s3_config()
|
||||
commit = subprocess.check_output(['git', 'describe', '--tags']).strip()
|
||||
|
||||
version = get_atom_shell_version()
|
||||
s3put(bucket, access_key, secret_key, SOURCE_ROOT,
|
||||
'atom-shell/{0}'.format(commit), glob.glob('atom-shell*.zip'))
|
||||
'atom-shell/{0}'.format(version), glob.glob('atom-shell*.zip'))
|
||||
|
||||
update_version(bucket, access_key, secret_key)
|
||||
|
||||
|
|
Loading…
Reference in a new issue