Add CI workflows for build and release#2
Merged
Merged
Conversation
- 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>
The legacy papermc.io/repo/repository/maven-public/ host now returns HTTP 403 Forbidden, so Maven cannot resolve paper-api on a clean cache (such as a fresh CI runner) and the build fails. Switch to the current repo.papermc.io/repository/maven-public/ URL, which serves the same artifacts. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
build.yml: builds the plugin on every push/PR tomaster(JDK 21 / temurin, Maven cache) and uploads the produced JAR as an artifact.release.yml: onrelease-*tags, verifies the tag's version suffix matchespom.xml<version>, builds, then publishes the JAR and auto-generated release notes to a GitHub release.Mirrors the workflows added to PowerBoard (Xitee1/PowerBoard#73).
Test plan
Buildworkflow runs and succeeds on this PRrelease-1.4(or matching) tag and confirm theReleaseworkflow attaches the SMP jar to the resulting GitHub releasepom.xml<version>fails the version-check step🤖 Generated with Claude Code