Skip to content

Commit

Permalink
build: correct release script
Browse files Browse the repository at this point in the history
Signed-off-by: amannocci <[email protected]>
  • Loading branch information
amannocci committed Oct 21, 2023
1 parent 5d81bf0 commit ce502d8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from sh import gh, git, poetry

from scripts import build
from scripts.utils import Constants


Expand Down Expand Up @@ -48,7 +47,7 @@ def run() -> None:
__set_version(release_version)

# Build binaries
poetry("poe", "build")
poetry("poe", "build", _out=sys.stdout, _err=sys.stderr)

# Push changes
git("add", "--all", _out=sys.stdout, _err=sys.stderr)
Expand All @@ -71,4 +70,7 @@ def run() -> None:
git("push", "--tags", _out=sys.stdout, _err=sys.stderr)

# Create release note
gh("release", "create", release_version, "--generate-notes", "./dist/*")
args = ["release", "create", "--generate-notes", "--latest", f"--title=temply {release_version}", release_version]
binaries = [file.absolute().as_posix() for file in Path(".").glob("./dist/*")]
args.extend(binaries)
gh(args, _out=sys.stdout, _err=sys.stderr)

0 comments on commit ce502d8

Please sign in to comment.