From b5e9e4d04c99d9add79134f4b119d0a2fa2389d6 Mon Sep 17 00:00:00 2001 From: Jack Kingsman Date: Wed, 11 Mar 2026 18:23:20 -0700 Subject: [PATCH] Fix tag notes --- scripts/publish.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/publish.sh b/scripts/publish.sh index 0f78ebe..9468643 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -185,11 +185,12 @@ RELEASE_NOTES_FILE=$(mktemp) } > "$RELEASE_NOTES_FILE" # Create and push the release tag first so GitHub release creation does not -# depend on resolving a symbolic ref like HEAD on the remote side. +# depend on resolving a symbolic ref like HEAD on the remote side. Use the same +# changelog-derived notes for the annotated tag message. if git rev-parse -q --verify "refs/tags/$VERSION" >/dev/null; then echo -e "${YELLOW}Tag $VERSION already exists locally; reusing it.${NC}" else - git tag "$VERSION" "$FULL_GIT_HASH" + git tag -a "$VERSION" "$FULL_GIT_HASH" -F "$RELEASE_NOTES_FILE" fi if git ls-remote --exit-code --tags origin "refs/tags/$VERSION" >/dev/null 2>&1; then