diff options
| author | James Mills <james@mills.io> | 2022-08-01 03:22:17 +0000 |
|---|---|---|
| committer | James Mills <james@mills.io> | 2022-08-01 03:22:17 +0000 |
| commit | 35217febfc2c5d6a7e5d5d2b0b3c10a168fb2ed1 (patch) | |
| tree | a9e7276d1e607646da113a4bf52fbb1698e1818a /tools | |
| parent | 3b7c29eb8abbc63eb817e5533e40adcc62c5e8da (diff) | |
Add support for multi-arch binary and docker image releases (#20)
Reviewed-on: https://git.mills.io/prologic/tube/pulls/20
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/release.sh | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/tools/release.sh b/tools/release.sh index e8ab44e..77d8612 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -1,16 +1,19 @@ -#!/bin/sh +#!/bin/bash # Get the highest tag number VERSION="$(git describe --abbrev=0 --tags)" VERSION=${VERSION:-'0.0.0'} # Get number parts -MAJOR="${VERSION%%.*}"; VERSION="${VERSION#*.}" -MINOR="${VERSION%%.*}"; VERSION="${VERSION#*.}" -PATCH="${VERSION%%.*}"; VERSION="${VERSION#*.}" +MAJOR="${VERSION%%.*}" +VERSION="${VERSION#*.}" +MINOR="${VERSION%%.*}" +VERSION="${VERSION#*.}" +PATCH="${VERSION%%.*}" +VERSION="${VERSION#*.}" # Increase version -PATCH=$((PATCH+1)) +PATCH=$((PATCH + 1)) TAG="${1}" @@ -20,6 +23,10 @@ fi echo "Releasing ${TAG} ..." +git-chglog --next-tag="${TAG}" --output CHANGELOG.md +git commit -a -m "Update CHANGELOG for ${TAG}" git tag -a -s -m "Release ${TAG}" "${TAG}" -git push --tags -goreleaser release --rm-dist +git push && git push --tags +goreleaser release \ + --rm-dist \ + --release-notes <(git-chglog "${TAG}" | tail -n+5) |
