From c3385b9d8dc4f6b08ea5094d20a6809e5b24f912 Mon Sep 17 00:00:00 2001 From: darrenhinde <107584450+darrenhinde@users.noreply.github.com> Date: Wed, 26 Nov 2025 22:36:08 +0000 Subject: [PATCH] feat(ci): auto-create GitHub releases on version bump Releases now appear in the GitHub sidebar. The release notes are extracted from CHANGELOG.md for the specific version. --- .github/workflows/test-agents.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/test-agents.yml b/.github/workflows/test-agents.yml index 48420c8..8f74bc7 100644 --- a/.github/workflows/test-agents.yml +++ b/.github/workflows/test-agents.yml @@ -252,3 +252,23 @@ jobs: git push origin main --tags env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Create GitHub Release + run: | + NEW_VERSION=$(cat VERSION) + + # Extract changelog entry for this version + RELEASE_NOTES=$(awk '/^## \['"$NEW_VERSION"'\]/{flag=1; next} /^## \[/{flag=0} flag' CHANGELOG.md) + + # If no specific notes found, use commit message + if [ -z "$RELEASE_NOTES" ]; then + RELEASE_NOTES="Release v$NEW_VERSION" + fi + + # Create the release + gh release create "v$NEW_VERSION" \ + --title "v$NEW_VERSION" \ + --notes "$RELEASE_NOTES" \ + --latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}