ci: gate Maven Central publish on maven-central environment#31
Merged
Conversation
Add `environment: maven-central` to the publish job. Deployment gating is configured on the GitHub environment side. CI YAML only — no build/code changes.
ba0de85 to
49a945b
Compare
endrju19
added a commit
that referenced
this pull request
Apr 29, 2026
Bumps `VERSION_NAME` from `0.1.0` to `0.2.0` ahead of release. After this merges I will create the `v0.2.0` tag, which will trigger the publish job (gated on `maven-central` environment — needs your approval in the Actions UI). ## What's in v0.2.0 The auto-generated draft is at https://github.com/softwaremill/okapi/releases — covers ~15 PRs since v0.1.0, including: - Observability module `okapi-micrometer` (#27, #29) - Outbox processor scheduler refactor (#16, #17) - Migration `OutboxStore` → plain JDBC (#26) - `@Jvm*` annotations for Java interop (#24) - CI hardening (environment gate #31) ## Test plan - [x] `./gradlew build` zielone na main przed bumpem (CI on every preceding PR) - [ ] After merge: `git tag v0.2.0 && git push --tags` - [ ] Approve `Publish to Maven Central` job in Actions UI - [ ] Verify artifacts on https://repo1.maven.org/maven2/com/softwaremill/okapi/
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
Adds
environment: maven-centralto thepublishjob in.github/workflows/ci.yml.The
maven-centralenvironment has been configured in repository settings with:v*can trigger deploymentEffect
Pushing a
v0.X.Ytag no longer triggers an immediate publish to Maven Central. Instead:build→spring-compat→kafka-compatas beforepublishjob reaches the gate and pauses in Waiting for review state./gradlew publishAndReleaseToMavenCentralrunsThis protects against accidental tags, compromised maintainer accounts, and race conditions.
Test plan
git diff)v*tag push pauses in Waiting for review