diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index c28c669..0955fd6 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -36,6 +36,9 @@ jobs: set -euo pipefail # Create the release for the pushed tag. The annotated tag's message # becomes the release description (empty for lightweight tags). + # Re-fetch the real tag object first: checkout creates the tag ref + # from the commit SHA, which silently discards the annotation. + git fetch --force --no-tags origin "refs/tags/${TAG}:refs/tags/${TAG}" body=$(git tag -l --format='%(contents)' "${TAG}") payload=$(jq -n --arg tag "${TAG}" --arg body "${body}" \ '{tag_name: $tag, name: $tag, body: $body}')