Skip to content

ci: CD pipeline that publishes releases to Maven Central - #21

Merged
RZEROSTERN merged 1 commit into
developfrom
feature/cd-pipeline
Oct 1, 2026
Merged

RZEROSTERN merged 1 commit into
developfrom
feature/cd-pipeline

Conversation

@RZEROSTERN

Copy link
Copy Markdown
Contributor

Summary

Adds .github/workflows/cd.yml, triggered by pushing a v* tag (or manually via workflow_dispatch):

  1. Tests and coverage gate — the release is blocked unless testDebugUnitTest and the 80% JaCoCo gate pass.
  2. Version guard — fails if the tag doesn't match VERSION_NAME in gradle.properties, so a mistagged release can't ship.
  3. Publish — PGP-signs and uploads the artifacts to the Sonatype Central Portal staging API using the repository secrets (MAVEN_REPOSITORY_USERNAME, MAVEN_REPOSITORY_PASSWORD, SIGNING_KEY, SIGNING_PASSWORD). The staging URL is OSSRH-compatible so the existing env-var-driven maven-publish setup works unchanged.
  4. Deliberate manual gate — nothing goes public automatically; the run summary reminds the maintainer to press Publish on the validated deployment at central.sonatype.com.
  5. GitHub release — created for the tag with generated notes.

docs/{en,es,fr,pt}/ci.md gain a "Continuous deployment" section with a mermaid diagram of the flow.

Test plan

  • Unit tests and the coverage gate pass locally.
  • Secret names verified against the repository secrets and the env vars the build reads in openpay-sdk/build.gradle.kts.
  • After merging: dry-run with workflow_dispatch from develop (publishes the current VERSION_NAME to staging only — it can be dropped in the portal without releasing).

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

Unit test coverage

Overall Project 83.51% 🍏

There is no coverage information present for the Files changed

@RZEROSTERN
RZEROSTERN merged commit 76f9ab2 into develop Oct 1, 2026
2 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