Upload SHASUMS.txt when publishing release
This commit is contained in:
parent
c30d806837
commit
8a418ba347
2 changed files with 16 additions and 13 deletions
|
@ -46,9 +46,22 @@ def main():
|
|||
sys.stderr.flush()
|
||||
return 1
|
||||
|
||||
# Upload atom-shell with GitHub Releases API.
|
||||
github = GitHub(auth_token())
|
||||
release_id = create_or_get_release_draft(github, args.version)
|
||||
|
||||
if args.publish_release:
|
||||
# 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)
|
||||
|
||||
# Do not upload other files when passed "-p".
|
||||
return
|
||||
|
||||
# Upload atom-shell with GitHub Releases API.
|
||||
upload_atom_shell(github, release_id, os.path.join(DIST_DIR, DIST_NAME))
|
||||
upload_atom_shell(github, release_id, os.path.join(DIST_DIR, SYMBOLS_NAME))
|
||||
|
||||
|
@ -67,10 +80,6 @@ def main():
|
|||
os.path.join(SOURCE_ROOT, 'script', 'upload-node-headers.py'),
|
||||
'-v', ATOM_SHELL_VERSION])
|
||||
|
||||
if args.publish_release:
|
||||
# Press the publish button.
|
||||
publish_release(github, release_id)
|
||||
|
||||
|
||||
def parse_args():
|
||||
parser = argparse.ArgumentParser(description='upload distribution file')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue