Skip to content

Commit

Permalink
Add a reminder to use github action for releases (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI authored Feb 4, 2022
1 parent 42813f2 commit 24bcf13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name-template: "v$RESOLVED_VERSION"
name-template: "RELEASE WITH GITHUB ACTIONS! v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
categories:
- title: "🚀 Features"
Expand Down
4 changes: 2 additions & 2 deletions script/publish_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def main() -> int:
if not release.draft:
print("The latest release is not a draft!")
return 1
version = release.title.lstrip("v")
version = release.title.split()[-1].lstrip("v")
update_version(repo, version)
publish_release(release)
return 0
Expand Down Expand Up @@ -53,7 +53,7 @@ def publish_release(release: GitRelease) -> None:
"""Publish draft release"""
print("Publishing new release...")
release.update_release(
name=release.title,
name=release.title.split()[-1],
message=release.body,
draft=False,
)
Expand Down

0 comments on commit 24bcf13

Please sign in to comment.