diff --git a/.github/workflows/deploy_to_central.yaml b/.github/workflows/deploy_to_central.yaml index bfa81b3d..4cdab1ef 100644 --- a/.github/workflows/deploy_to_central.yaml +++ b/.github/workflows/deploy_to_central.yaml @@ -16,9 +16,12 @@ jobs: java-version: "11" distribution: "adopt" server-id: ossrh - server-username: ${{ secrets.OSSRH_USERNAME }} - server-password: ${{ secrets.OSSRH_TOKEN }} + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} gpg-passphrase: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} - name: Publish package run: mvn deploy + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}