ci: add GitHub Actions for CI and Maven Central release#2
Merged
Conversation
Adapt the workflows from maplibre-compose-playground: - ci.yml: build / ktfmtCheck / test / connectedCheck on push + PR to main - release.yml: manual dispatch that bumps the version, cuts a GH release, and runs publishAndReleaseToMavenCentral with in-memory signing - dependabot.yml: monthly Gradle updates Adaptations for this repo: JDK 21 (not 17), drop the MapLibre api_keys step, and fix version_bump.sh to use $GITHUB_OUTPUT instead of the disabled ::set-output workflow command. Co-Authored-By: Claude Opus 4.7 <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
ci.yml— runs build,ktfmtCheck, unit tests, and an emulator-basedconnectedCheckon every push and PR tomain.release.yml— manualworkflow_dispatch(patch/minor/major) that bumps the version viascripts/version_bump.sh, commits it, cuts a GitHub release, then runs./gradlew publishAndReleaseToMavenCentralusing in-memory GPG signing.dependabot.yml— monthly Gradle dependency updates.Adapted from
maplibre-compose-playground, with three changes for this repo:jvmToolchain(21)).Copy api_keys.xmlsteps — those are MapLibre-specific and don't exist here.version_bump.shto write to$GITHUB_OUTPUTinstead of the disabled::set-outputworkflow command, so the release job's version output actually resolves.Secrets
MAVEN_*secrets are Rallista org secrets; this repo was added to each allow-list.PATis a repo secret (created on this repo) so the version-bump push can trigger CI.Test plan
release.ymlvia the Actions tab withpatchand confirm: version bump commit, GH release, and a published deployment on Maven Central.🤖 Generated with Claude Code