chore: move upload-to-github to TS (#26390)

This commit is contained in:
Samuel Attard 2020-11-09 13:57:53 -08:00 committed by GitHub
parent 40ebdb5c42
commit 946802600b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 12 deletions

View file

@ -20,7 +20,7 @@ from lib.config import PLATFORM, get_target_arch, get_env_var, s3_config, \
get_zip_name, enable_verbose_mode, get_platform_key
from lib.util import get_electron_branding, execute, get_electron_version, \
s3put, get_electron_exec, get_out_dir, \
SRC_DIR, ELECTRON_DIR
SRC_DIR, ELECTRON_DIR, TS_NODE
ELECTRON_REPO = 'electron/electron'
@ -337,8 +337,8 @@ def upload_io_to_github(release, filename, filepath, version):
print('Uploading %s to Github' % \
(filename))
script_path = os.path.join(
ELECTRON_DIR, 'script', 'release', 'uploaders', 'upload-to-github.js')
execute(['node', script_path, filepath, filename, str(release['id']),
ELECTRON_DIR, 'script', 'release', 'uploaders', 'upload-to-github.ts')
execute([TS_NODE, script_path, filepath, filename, str(release['id']),
version])