]> khamidou — GitHub mirrors - electron.git/commitdiff
Don't overwrite files on S3
authorCheng Zhao <zcbenz@gmail.com>
Fri, 7 Nov 2014 13:45:40 +0000 (21:45 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 7 Nov 2014 13:45:40 +0000 (21:45 +0800)
script/lib/util.py
script/upload.py

index 83c3e05148b4cd64f8b37ae4cf846ea7bcbc6257..355fec027c45e5ac460b1e55bc7c95c43476f7b8 100644 (file)
@@ -183,6 +183,7 @@ def s3put(bucket, access_key, secret_key, prefix, key_prefix, files):
     '--secret_key', secret_key,
     '--prefix', prefix,
     '--key_prefix', key_prefix,
+    '--no_overwrite',
     '--grant', 'public-read'
   ] + files
 
index 2ad7f5ffd8efa4c928ba516dd399566a53a5e5c8..edfa4c963c9750b6bedb34272b93da343588ff7f 100755 (executable)
@@ -59,19 +59,19 @@ def main():
     upload_atom_shell(github, release_id,
                       os.path.join(DIST_DIR, CHROMEDRIVER_NAME))
 
-  # Upload node's headers to S3.
-  bucket, access_key, secret_key = s3_config()
-  upload_node(bucket, access_key, secret_key, ATOM_SHELL_VERSION)
-
   if args.publish_release:
-    # Press the publish button.
-    publish_release(github, release_id)
+    # Upload node's headers to S3.
+    bucket, access_key, secret_key = s3_config()
+    upload_node(bucket, access_key, secret_key, ATOM_SHELL_VERSION)
 
     # Upload the SHASUMS.txt.
     execute([sys.executable,
              os.path.join(SOURCE_ROOT, 'script', 'upload-checksums.py'),
              '-v', ATOM_SHELL_VERSION])
 
+    # Press the publish button.
+    publish_release(github, release_id)
+
 
 def parse_args():
   parser = argparse.ArgumentParser(description='upload distribution file')