Skip to content

Push the release tag and draft a GitHub release from the release workflow - #828

Merged
oryan-block merged 2 commits into
masterfrom
bugfix/release-tag
Oct 4, 2026
Merged

oryan-block merged 2 commits into
masterfrom
bugfix/release-tag

Conversation

@oryan-block

Copy link
Copy Markdown
Collaborator

github-build.sh tagged the release commit locally but never pushed the tag, and create-pull-request only pushes the branch. So the wiki's "create a release from the tag that was just created" step had no tag to use, and v14.0.0, v14.0.1 and v14.0.3 ended up tagged by hand at master HEAD, on the post-release SNAPSHOT commits.

  • Push v<version> right after the release commit, then create a draft GitHub release on it with generated notes. Notes start at the current Latest release, because release tags sit on the PR side of the merge and GitHub otherwise falls back to v14.0.3. If creating the draft fails, it only logs a warning so the bump PR still gets opened.
  • Fail before deploying if the pom version doesn't end in -SNAPSHOT. Re-running after a release would otherwise try to republish to Central.
  • Set explicit token permissions: contents: read for the workflow, contents: write + pull-requests: write for publish.

Tested github-build.sh in an ubuntu:24.04 container with stubbed mvn/gh against a local bare remote. The annotated tag reaches the remote on the 14.1.1 release commit, the bump commit stays local for the PR, a failed gh release create still produces the bump commit, and a non-SNAPSHOT pom exits before mvn. actionlint is clean.

After merging, the wiki's last step becomes "edit and publish the draft release".

🤖 Generated with Claude Code

oryan-block and others added 2 commits October 3, 2026 18:09
…flow

The tag created by github-build.sh was never pushed, so GitHub tags were
created by hand at master HEAD and pointed at post-release SNAPSHOT
commits. Push it, open a draft release on it, and fail before deploying
if the pom version isn't a SNAPSHOT.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Oct 4, 2026

Copy link
Copy Markdown

@oryan-block
oryan-block merged commit 908e0f4 into master Oct 4, 2026
6 checks passed
@oryan-block
oryan-block deleted the bugfix/release-tag branch October 4, 2026 18:04
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