Skip to content

Commit fc3339a

Browse files
committed
fix(android): update release command and repository URL for Maven Central
1 parent 476ddd9 commit fc3339a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,11 @@ jobs:
259259

260260
- name: release android aar to maven central
261261
if: steps.tag.outputs.version != ''
262-
run: cd packages/android && ./gradlew publishReleasePublicationToCentralRepository -PVERSION=${{ steps.tag.outputs.version }}
262+
run: |
263+
echo "Maven Central Username length: ${#MAVEN_CENTRAL_USERNAME}"
264+
echo "Maven Central Token length: ${#MAVEN_CENTRAL_TOKEN}"
265+
echo "Signing key length: ${#SIGNING_KEY}"
266+
cd packages/android && ./gradlew publishReleasePublicationToOSSRHRepository -PVERSION=${{ steps.tag.outputs.version }}
263267
env:
264268
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
265269
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}

packages/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ afterEvaluate {
9191

9292
repositories {
9393
maven {
94-
name = "Central"
95-
url = "https://central.sonatype.com/api/v1/publisher/upload"
94+
name = "OSSRH"
95+
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
9696
credentials {
9797
username = project.findProperty("MAVEN_CENTRAL_USERNAME") ?: ""
9898
password = project.findProperty("MAVEN_CENTRAL_TOKEN") ?: ""

0 commit comments

Comments
 (0)