From ce94600afdbe4a63180f627be7aa69b6bf83e9a2 Mon Sep 17 00:00:00 2001 From: leemour Date: Thu, 26 Nov 2026 23:41:35 +0100 Subject: [PATCH] ci(release): create the GitHub release from the changelog after tagging The release workflow pushed only the tag, so the releases page stopped at the last release made by hand (cli-core 0.411.0, cli-base 0.51.0) and showed no 1.x. The tag job now runs the same step as the CLIs' release workflows. 1.x was backfilled by hand from the changelog. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 7 +++++++ changes/ci-github-release.md | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 changes/ci-github-release.md diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b4b83f..f63db43 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -156,3 +156,10 @@ jobs: git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git tag -a "v$VERSION" -m "$VERSION" git push origin "v$VERSION" + + - name: GitHub release from the changelog + env: + GH_TOKEN: ${{ github.token }} + run: | + awk -v v="$VERSION" '$0 ~ "^## "v" " {on=1; next} /^## / && on {exit} on' CHANGELOG.md | + gh release create "v$VERSION" --title "$VERSION" --notes-file - diff --git a/changes/ci-github-release.md b/changes/ci-github-release.md new file mode 100644 index 0000000..3217d01 --- /dev/null +++ b/changes/ci-github-release.md @@ -0,0 +1,5 @@ +### Fixed + +- **A release makes its GitHub release again.** The release workflow pushed only the tag, so GitHub's releases page + stopped at the last release made by hand. The `tag` job now creates the release from the version's changelog + section, as the CLIs' release workflows do. 1.x was backfilled by hand.