From d6670f5c6afd4df4d9cbc98ef2b190a853046095 Mon Sep 17 00:00:00 2001 From: Travis Wyatt Date: Tue, 16 May 2023 14:02:52 -0700 Subject: [PATCH] Use `github.ref_name` for version during publication (#208) --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c527a13..8a247ad 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,7 +24,7 @@ jobs: uses: gradle/gradle-build-action@v2 with: arguments: | - -PVERSION_NAME=${GITHUB_REF/refs\/tags\//} + -PVERSION_NAME=${{ github.ref_name }} -PsigningInMemoryKey=${{ secrets.SIGNING_KEY }} -PsigningInMemoryKeyPassword=${{ secrets.SIGNING_PASSWORD }} -PmavenCentralUsername=${{ secrets.OSS_SONATYPE_NEXUS_USERNAME }}