Skip to content

Commit

Permalink
Tag correct commit when doing a GitHub release.
Browse files Browse the repository at this point in the history
Fix #371.
  • Loading branch information
tom-seddon committed Sep 24, 2024
1 parent d9b1e79 commit f04834f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etc/release/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ def create_README(options,folder,rev_hash):
def gh_release(release_files,options):
# Is this really the best place for all these policies?
prerelease=capture(['git','branch','--show-current'])[0]!='master'
hash=capture(['git','rev-parse','HEAD'])[0]

release_name='b2-'+options.release_name
if prerelease: release_name+='-prerelease'

create_argv=['gh','release','create',release_name,'--notes','Release notes to follow.']
create_argv=['gh','release','create',release_name,'--notes','Release notes to follow.','--target',hash,'--title',release_name]
if prerelease: create_argv+=['--prerelease']

# Assume any errors from the creation process are due to the
Expand Down

0 comments on commit f04834f

Please sign in to comment.