Skip to content

chore: Moving from OSSRH to the Maven Central Portal to publish the SDK library release.#276

Open
mrudatsprint wants to merge 23 commits intomainfrom
release-please--branches--main
Open

chore: Moving from OSSRH to the Maven Central Portal to publish the SDK library release.#276
mrudatsprint wants to merge 23 commits intomainfrom
release-please--branches--main

Conversation

@mrudatsprint
Copy link
Contributor

@mrudatsprint mrudatsprint commented Feb 9, 2026

Moving from OSSRH to the Maven Central Portal to publish the SDK library release. OSSRH was end of life June 30, 2025

@mrudatsprint mrudatsprint changed the title Release please branches main chore: Moving from OSSRH to the Maven Central Portal to publish the SDK library release. Feb 9, 2026
role-session-name: aws-auth-action
aws-region: ${{ env.AWS_REGION }}

- name: get secrets into the env
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get the secrets from AWS to publish the artifact to the Central Portal.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates the Android SDK release publishing pipeline from legacy OSSRH staging to Sonatype’s Maven Central Portal workflow, aligning with OSSRH EOL timelines.

Changes:

  • Updates Gradle publishing configuration to publish artifacts to a local build directory (for bundling/upload).
  • Updates the main release workflow to trigger the new Central Portal publish workflow.
  • Adds a new release-publish.yml workflow to bundle and upload artifacts to Maven Central Portal; removes the old OSSRH workflow.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
library/build.gradle.kts Replaces OSSRH publish target with a local maven directory repository for later bundling.
.github/workflows/release.yml Switches the triggered publish workflow from OSSRH to the new Central Portal workflow.
.github/workflows/release-publish.yml New workflow that builds/signs locally, zips the repo output, and uploads to Central Portal.
.github/workflows/release-publish-ossrh.yml Removes obsolete OSSRH-based publishing workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

run: |
RESPONSE=$(curl --request POST \
--verbose \
--user '${{ env.CENTRAL_USERNAME }}:${{ env.CENTRAL_PASSWORD }}' \
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Central Portal credentials are populated at runtime via $GITHUB_ENV in a previous step, but ${{ env.CENTRAL_USERNAME }} / ${{ env.CENTRAL_PASSWORD }} are evaluated as GitHub expressions before the step runs, so they may be empty here. Use the shell env vars ($CENTRAL_USERNAME / $CENTRAL_PASSWORD) instead so the values set from AWS Secrets Manager are actually used.

Suggested change
--user '${{ env.CENTRAL_USERNAME }}:${{ env.CENTRAL_PASSWORD }}' \
--user "$CENTRAL_USERNAME:$CENTRAL_PASSWORD" \

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, CENTRAL_USERNAME and CENTRAL_PASSWORD are set in the environment when retrieving the secrets by executing aws secretsmanager get-secret-value

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mrudatsprint mrudatsprint marked this pull request as ready for review February 12, 2026 20:38
@mrudatsprint mrudatsprint requested review from a team as code owners February 12, 2026 20:38
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.

2 participants