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.