Agent Skill · Apollo Config

apollo-java-release

Automate Apollo Java formal release operations end-to-end with a single command and explicit human checkpoints. Use when preparing a non-SNAPSHOT Apollo Java release, creating release PR/tag/workflow/discussion, relying on Sonatype Central auto-publish via Maven plugin, and opening the post-release SNAPSHOT PR.

Provider: Apollo Config Path in repo: apollo-java-release/SKILL.md

Skill body

Apollo Java Release

Run this skill when you want to execute the Apollo Java formal release workflow in a controlled and resumable way.

Workflow Contract

Command Entry

python3 scripts/release_flow.py run \
  --release-version X.Y.Z \
  --next-snapshot A.B.C-SNAPSHOT \
  --highlight-prs PR_ID_1,PR_ID_2 \
  [--state-file .apollo-java-release-state.json] \
  [--confirm-checkpoint CHECKPOINT]

Supported checkpoints

If execution stops at a checkpoint, rerun with --confirm-checkpoint <NAME>.

Step Mapping (1~7)

  1. Bump root pom.xml revision from X.Y.Z-SNAPSHOT to X.Y.Z, create release branch/commit/PR draft.
  2. Wait for release PR merge, then create GitHub prerelease (vX.Y.Z, target main).
  3. Trigger .github/workflows/release.yml; the workflow publishes through central-publishing-maven-plugin with autoPublish=true and waits until published.
  4. Publish announcement discussion in Announcements with title/body aligned to existing Apollo Java style.
  5. Post-release housekeeping: bump to next SNAPSHOT, archive CHANGES.md, close/create milestones, and open post-release PR.
  6. Promote prerelease tag to official release, mark it as latest, after workflow publish succeeds.
  7. Print final report with PR/release/workflow/discussion links for traceability.

Scripts

References

Operational Notes