diff --git a/.github/workflows/releaseToMavenCentral.yml b/.github/workflows/releaseToMavenCentral.yml index e3823e7f..2f33d076 100644 --- a/.github/workflows/releaseToMavenCentral.yml +++ b/.github/workflows/releaseToMavenCentral.yml @@ -13,10 +13,14 @@ jobs: java-version: '11' distribution: 'temurin' server-id: central - server-username: ${{ secrets.MAVEN_CENTRAL_USER }} - server-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} + server-username: MAVEN_CENTRAL_USER + server-password: MAVEN_CENTRAL_PASSWORD gpg-private-key: ${{ secrets.MAVEN_CENTRAL_GPG_PRIVATE_KEY }} - gpg-passphrase: ${{ secrets.MAVEN_CENTRAL_GPG_PASSPHRASE }} + gpg-passphrase: MAVEN_CENTRAL_GPG_PASSPHRASE - name: Publish package run: ./mvnw deploy + env: + MAVEN_CENTRAL_USER: ${{ secrets.MAVEN_CENTRAL_USER }} + MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} + MAVEN_CENTRAL_GPG_PASSPHRASE: ${{ secrets.MAVEN_CENTRAL_GPG_PASSPHRASE }}