From e13e24b54e01a302f722996d6383323a0cbfb9af Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 27 Jan 2026 10:30:12 -0700 Subject: [PATCH] Use annotated tags --- scripts/tag.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/tag.sh b/scripts/tag.sh index 157872c..2676faf 100755 --- a/scripts/tag.sh +++ b/scripts/tag.sh @@ -2,14 +2,15 @@ set -e -TAG="$1" - -if [ -z "$TAG" ] +if [ -z "$1" ] then - echo "$0 [tag]" >&2 + echo "$0 [epoch version]" >&2 exit 1 fi +VERSION="$1" +TAG="epoch-$1" + echo "Do you want to tag the current state of cosmic-epoch with the tag $TAG? (y/N)" read answer if [ "$answer" != "y" ] @@ -22,8 +23,8 @@ set -x git fetch --recurse-submodules -git tag --force "$TAG" -git submodule foreach git tag --force "$TAG" +git tag --force --annotate "$TAG" --message "Epoch ${VERSION}" +git submodule foreach git tag --force --annotate "$TAG" --message "Epoch ${VERSION}" git push --force origin tag "$TAG" git submodule foreach git push --force origin tag "$TAG"