From aa8bdea9aaf355bc1eb69b993abd35c1b851170b Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Sat, 27 Jan 2024 11:49:34 +0100 Subject: [PATCH] Fix release.yml (#829) --- .github/workflows/release.yml | 4 ++-- pom.xml | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d424b1d..9613bdba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: java-version: ${{ matrix.java }} architecture: ${{ matrix.architecture }} cache: 'maven' - server-id: ossrh + server-id: oss.sonatype.org server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} @@ -34,7 +34,7 @@ jobs: - name: Release with Maven - run: mvn --batch-mode --no-transfer-progress -DskipTests deploy + run: mvn -B deploy --no-transfer-progress -P central-deploy -DskipTests=true env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} diff --git a/pom.xml b/pom.xml index 63478eef..f182bb58 100644 --- a/pom.xml +++ b/pom.xml @@ -117,7 +117,6 @@ org.apache.maven.plugins maven-gpg-plugin - 3.1.0 sign-artifacts @@ -156,7 +155,7 @@ - ossrh + oss.sonatype.org https://oss.sonatype.org