Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit 62f69f1

Browse files
committed
Update publish script to properly set tag (used in build automation)
1 parent 7f40688 commit 62f69f1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/publish_release.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def main():
2323
tag_exists)
2424

2525
# Press the publish button.
26-
publish_release(github, release['id'])
26+
if not tag_exists:
27+
publish_release(github, release['id'], tag)
2728

2829
def create_release_draft(github, tag):
2930
name = '{0} {1}'.format(RELEASE_NAME, tag)
@@ -60,8 +61,8 @@ def release_channel():
6061
assert channel, message
6162
return channel
6263

63-
def publish_release(github, release_id):
64-
data = dict(draft=False, prerelease=True)
64+
def publish_release(github, release_id, tag):
65+
data = dict(draft=False, prerelease=True, tag_name=tag)
6566
github.repos(BROWSER_LAPTOP_REPO).releases(release_id).patch(data=data)
6667

6768
if __name__ == '__main__':

0 commit comments

Comments
 (0)