From 3c0b3c38e20c3dc50c2f57116f71e88a5da303df Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Wed, 28 Aug 2024 18:26:17 -0300 Subject: [PATCH] build: added do_release script --- do_release.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 do_release.sh diff --git a/do_release.sh b/do_release.sh new file mode 100755 index 0000000..cbadbc4 --- /dev/null +++ b/do_release.sh @@ -0,0 +1,15 @@ +#!/bin/bash +set e + +PKGNAME=$(basename "$PWD") +VERSION=$(git cliff --bumped-version |cut -dv -f2) + +sed "s/^version:.*$/version: $VERSION/g" -i shard.yml +git add shard.yml +hace lint test +git cliff --bump -o +git commit -a -m "bump: Release v$VERSION" +git tag "v$VERSION" +git push --tags +hace static +gh release create "v$VERSION" "bin/$PKGNAME-static-linux-amd64" "bin/$PKGNAME-static-linux-arm64" --title "Release v$VERSION" --notes "$(git cliff -l -s all)"