From 0afe333a7c60d9ec405754aa31cd8d75f53ee5d9 Mon Sep 17 00:00:00 2001 From: timothyF95 Date: Wed, 1 Apr 2026 13:13:08 +0100 Subject: [PATCH] Fix release script --- scripts/tag-and-push.sh | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/scripts/tag-and-push.sh b/scripts/tag-and-push.sh index 94c4ffc1..eaba43fe 100755 --- a/scripts/tag-and-push.sh +++ b/scripts/tag-and-push.sh @@ -9,25 +9,6 @@ if git rev-parse "$tag" >/dev/null 2>&1; then exit 0 fi -sha=$(git rev-parse HEAD) -repo="${GITHUB_REPOSITORY}" - -echo "Creating signed tag: $tag (pointing to $sha)" - -# Create an annotated tag object via the GitHub API. -# Tags created server-side are signed by GitHub and display as "Verified". -tag_sha=$(gh api "repos/${repo}/git/tags" \ - --method POST \ - -f tag="$tag" \ - -f message="CRE CLI $tag" \ - -f object="$sha" \ - -f type="commit" \ - --jq '.sha') - -# Create the ref pointing to the tag object -gh api "repos/${repo}/git/refs" \ - --method POST \ - -f ref="refs/tags/$tag" \ - -f sha="$tag_sha" - -echo "Tag $tag created and verified." +echo "Creating and pushing tag: $tag" +git tag -a "$tag" -m "CRE CLI $tag" +git push origin "$tag"