From cfb93c2f50d2d15fc8fffeada56ff5fcdfaa31db Mon Sep 17 00:00:00 2001 From: EvaTheSalmon <18466855+EvaTheSalmon@users.noreply.github.com> Date: Mon, 19 Oct 2026 18:08:01 +0300 Subject: [PATCH] ci(github): publish the tag annotation as notes Every GitHub release so far carries the message of the tagged commit instead of the notes written in the tag annotation. actions/checkout fetches the tagged commit by its hash into refs/tags/, so the local tag has no annotation and gh release create --notes-from-tag reads the commit message. The workflow now fetches the annotated tag from origin before it creates the release. --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4023cf..8f6a648 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,6 +37,11 @@ jobs: tags: ghcr.io/mrcsin/usher:${{ github.ref_name }} build-args: VERSION=${{ github.ref_name }} + # actions/checkout leaves the tag without its annotation, and --notes-from-tag + # would then publish the commit message instead of the release notes. + - name: fetch annotated tag + run: git fetch --force origin "refs/tags/$GITHUB_REF_NAME:refs/tags/$GITHUB_REF_NAME" + - name: create GitHub release run: gh release create "$GITHUB_REF_NAME" --verify-tag --notes-from-tag env: