From 917a6481a44b9de627a12f71e072b433d3a2135c Mon Sep 17 00:00:00 2001 From: nk-coding Date: Fri, 28 Jun 2024 00:23:28 +0200 Subject: [PATCH] fix deploy env variables --- .github/workflows/releaseToMavenCentral.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 }}