Browse Source

chore: fix upload script for nightly support (#14203)

Samuel Attard 6 years ago
parent
commit
c1ef824e4c
1 changed files with 4 additions and 3 deletions
  1. 4 3
      script/upload.py

+ 4 - 3
script/upload.py

@@ -166,7 +166,7 @@ def upload_electron(release, file_path, args):
     return
 
   # Upload the file.
-  upload_io_to_github(release, filename, file_path)
+  upload_io_to_github(release, filename, file_path, args.version)
 
   # Upload the checksum file.
   upload_sha256_checksum(args.version, file_path)
@@ -180,11 +180,12 @@ def upload_electron(release, file_path, args):
     upload_electron(release, arm_file_path, args)
 
 
-def upload_io_to_github(release, filename, filepath):
+def upload_io_to_github(release, filename, filepath, version):
   print 'Uploading %s to Github' % \
       (filename)
   script_path = os.path.join(SOURCE_ROOT, 'script', 'upload-to-github.js')
-  execute(['node', script_path, filepath, filename, str(release['id'])])
+  execute(['node', script_path, filepath, filename, str(release['id']),
+          version])
 
 
 def upload_sha256_checksum(version, file_path, key_prefix=None):