Skip to content

ci: add GitHub Actions for CI and Maven Central release#2

Merged
Archdoog merged 2 commits into
mainfrom
ci/github-actions
May 28, 2026
Merged

ci: add GitHub Actions for CI and Maven Central release#2
Archdoog merged 2 commits into
mainfrom
ci/github-actions

Conversation

@Archdoog
Copy link
Copy Markdown
Contributor

Summary

  • ci.yml — runs build, ktfmtCheck, unit tests, and an emulator-based connectedCheck on every push and PR to main.
  • release.yml — manual workflow_dispatch (patch/minor/major) that bumps the version via scripts/version_bump.sh, commits it, cuts a GitHub release, then runs ./gradlew publishAndReleaseToMavenCentral using in-memory GPG signing.
  • dependabot.yml — monthly Gradle dependency updates.

Adapted from maplibre-compose-playground, with three changes for this repo:

  • JDK 21 instead of 17 (this library targets Java 21 / jvmToolchain(21)).
  • Dropped the Copy api_keys.xml steps — those are MapLibre-specific and don't exist here.
  • Fixed version_bump.sh to write to $GITHUB_OUTPUT instead of the disabled ::set-output workflow command, so the release job's version output actually resolves.

Secrets

  • The four MAVEN_* secrets are Rallista org secrets; this repo was added to each allow-list.
  • PAT is a repo secret (created on this repo) so the version-bump push can trigger CI.

Test plan

  • CI workflow runs and passes on this PR (build / ktfmt / test / connected-check).
  • After merge, trigger release.yml via the Actions tab with patch and confirm: version bump commit, GH release, and a published deployment on Maven Central.

🤖 Generated with Claude Code

Archdoog and others added 2 commits May 27, 2026 20:51
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>
@Archdoog Archdoog merged commit 6cb1bc7 into main May 28, 2026
4 checks passed
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