diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a18e7e45..b166853d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,6 +38,7 @@ jobs: server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD + mvn-server-repository-origins: central:https://central.sonatype.com gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }} gpg-passphrase: GPG_PASSPHRASE - name: Publish release diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 4d0d8d39..217deea2 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -31,8 +31,9 @@ jobs: server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD + mvn-server-repository-origins: central:https://central.sonatype.com - name: Publish release - run: mvn --batch-mode deploy -Dmaven.repository.credentialScope=id + run: mvn --batch-mode deploy env: MAVEN_USERNAME: ${{ secrets.OSS_USER_TOKEN_KEY }} MAVEN_PASSWORD: ${{ secrets.OSS_USER_TOKEN_PASS }}