From 75c56b7d84563249248bfc0933545928a2d62f3f Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Thu, 16 May 2024 17:33:39 +0200 Subject: [PATCH] Update publish-central.yml Acutally fixing #64 --- .github/workflows/publish-central.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-central.yml b/.github/workflows/publish-central.yml index f075bc2..a09cb65 100644 --- a/.github/workflows/publish-central.yml +++ b/.github/workflows/publish-central.yml @@ -24,11 +24,12 @@ jobs: gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase - name: Enforce project version ${{ github.event.inputs.tag }} - run: mvn versions:set -B -DnewVersion=$GIT_TAG + run: mvn versions:set -B -DnewVersion="$GIT_TAG" + env: + GIT_TAG: ${{ github.event.inputs.tag }} - name: Deploy run: mvn deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress env: - GIT_TAG: ${{ github.event.inputs.tag }} MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }} \ No newline at end of file + MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}