Skip to content

ci: create a GitHub release from the changelog after publishing - #57

Merged
Zhoujie628 merged 1 commit into
project-openan:mainfrom
Zhoujie628:main
Sep 9, 2026
Merged

Zhoujie628 merged 1 commit into
project-openan:mainfrom
Zhoujie628:main

Conversation

@Zhoujie628

Copy link
Copy Markdown
Contributor

Summary

  • Add a github-release job to the release workflow that runs only for tag pushes, after the Maven publish job succeeds: it extracts the tagged version's section from CHANGELOG.md (awk, index-based match) and creates the GitHub release with those notes via gh release create --verify-tag, using the workflow's built-in GITHUB_TOKEN with a job-scoped contents: write permission.
  • Until now releases were only tags; the Releases page stayed empty unless someone created releases manually (as a2a-t-sdk-java does by hand). With this change every future tag populates the Releases page automatically.

Test plan

  • Workflow YAML parses; job graph: release → github-release (tag-gated)
  • Changelog extraction awk verified locally against the 0.0.3 and 0.0.5 sections
  • First live verification on the next version tag

🤖 Generated with Claude Code

Add a second job that runs only for tag pushes after the Maven publish
succeeds: it extracts the tagged version's section from CHANGELOG.md and
creates the GitHub release with those notes via gh, so the Releases page
is populated automatically instead of requiring a manual step.

Signed-off-by: Zhoujie628 <zhoujie628@users.noreply.github.com>
@Zhoujie628
Zhoujie628 requested a review from a team as a code owner September 9, 2026 09:23
@Zhoujie628
Zhoujie628 merged commit 7161b8d into project-openan:main Sep 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant