Skip to content

Add CI workflows for build and release#73

Merged
Xitee1 merged 1 commit into
masterfrom
add-ci-workflows
Apr 18, 2026
Merged

Add CI workflows for build and release#73
Xitee1 merged 1 commit into
masterfrom
add-ci-workflows

Conversation

@Xitee1
Copy link
Copy Markdown
Owner

@Xitee1 Xitee1 commented Apr 18, 2026

Summary

  • Add .github/workflows/build.yml — builds on push/PR to master, uploads JAR as artifact
  • Add .github/workflows/release.yml — triggers on release-* tags, verifies tag matches pom.xml version, builds, and attaches JAR + auto-generated release notes to the GitHub Release

Best practices applied

  • Least-privilege permissions: (read for build, write for release)
  • Concurrency group cancels redundant PR reruns
  • setup-java@v4 with built-in Maven dependency cache
  • Pinned actions to stable major versions (@v4, @v2)
  • Tag/pom version mismatch fails the release early
  • name: intentionally unset in the release action so a manually set release title isn't overwritten

Test plan

  • Push triggers Build workflow successfully on this PR
  • JAR artifact is downloadable from the workflow run
  • After merge, draft a release via GitHub UI with tag release-X.Y.Z (body empty) → Release workflow attaches JAR and fills in release notes
  • Tag/pom version mismatch correctly fails the release job

🤖 Generated with Claude Code

- build.yml: builds on push/PR to master, uploads JAR artifact
- release.yml: on release-* tags, verifies tag matches pom.xml version, builds, attaches JAR and release notes to GitHub release

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Xitee1 Xitee1 merged commit 2a376d9 into master Apr 18, 2026
1 check failed
@Xitee1 Xitee1 deleted the add-ci-workflows branch April 18, 2026 12:50
@Xitee1 Xitee1 mentioned this pull request Apr 18, 2026
5 tasks
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