Don't overwrite files on S3
This commit is contained in:
parent
caa0634df8
commit
45fb3ec41d
2 changed files with 7 additions and 6 deletions
|
@ -183,6 +183,7 @@ def s3put(bucket, access_key, secret_key, prefix, key_prefix, files):
|
||||||
'--secret_key', secret_key,
|
'--secret_key', secret_key,
|
||||||
'--prefix', prefix,
|
'--prefix', prefix,
|
||||||
'--key_prefix', key_prefix,
|
'--key_prefix', key_prefix,
|
||||||
|
'--no_overwrite',
|
||||||
'--grant', 'public-read'
|
'--grant', 'public-read'
|
||||||
] + files
|
] + files
|
||||||
|
|
||||||
|
|
|
@ -59,19 +59,19 @@ def main():
|
||||||
upload_atom_shell(github, release_id,
|
upload_atom_shell(github, release_id,
|
||||||
os.path.join(DIST_DIR, CHROMEDRIVER_NAME))
|
os.path.join(DIST_DIR, CHROMEDRIVER_NAME))
|
||||||
|
|
||||||
|
if args.publish_release:
|
||||||
# Upload node's headers to S3.
|
# Upload node's headers to S3.
|
||||||
bucket, access_key, secret_key = s3_config()
|
bucket, access_key, secret_key = s3_config()
|
||||||
upload_node(bucket, access_key, secret_key, ATOM_SHELL_VERSION)
|
upload_node(bucket, access_key, secret_key, ATOM_SHELL_VERSION)
|
||||||
|
|
||||||
if args.publish_release:
|
|
||||||
# Press the publish button.
|
|
||||||
publish_release(github, release_id)
|
|
||||||
|
|
||||||
# Upload the SHASUMS.txt.
|
# Upload the SHASUMS.txt.
|
||||||
execute([sys.executable,
|
execute([sys.executable,
|
||||||
os.path.join(SOURCE_ROOT, 'script', 'upload-checksums.py'),
|
os.path.join(SOURCE_ROOT, 'script', 'upload-checksums.py'),
|
||||||
'-v', ATOM_SHELL_VERSION])
|
'-v', ATOM_SHELL_VERSION])
|
||||||
|
|
||||||
|
# Press the publish button.
|
||||||
|
publish_release(github, release_id)
|
||||||
|
|
||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
||||||
parser = argparse.ArgumentParser(description='upload distribution file')
|
parser = argparse.ArgumentParser(description='upload distribution file')
|
||||||
|
|
Loading…
Reference in a new issue