2024-08-28 21:26:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set e
|
|
|
|
|
|
|
|
PKGNAME=$(basename "$PWD")
|
2024-09-21 17:05:14 +00:00
|
|
|
VERSION=$(git cliff --bumped-version --unreleased |cut -dv -f2)
|
2024-08-28 21:26:17 +00:00
|
|
|
|
|
|
|
sed "s/^version:.*$/version: $VERSION/g" -i shard.yml
|
|
|
|
git add shard.yml
|
|
|
|
hace lint test
|
2024-09-21 17:08:07 +00:00
|
|
|
git cliff --bump -u -p CHANGELOG.md
|
2024-08-28 21:26:17 +00:00
|
|
|
git commit -a -m "bump: Release v$VERSION"
|
2024-09-26 23:47:58 +00:00
|
|
|
hace static
|
2024-08-28 21:26:17 +00:00
|
|
|
git tag "v$VERSION"
|
|
|
|
git push --tags
|
|
|
|
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)"
|