From a5b8e52435a404f2cfbc44f2e9addf03eed7e1f6 Mon Sep 17 00:00:00 2001 From: Manan Bhatt Date: Wed, 20 Sep 2023 22:23:25 +0530 Subject: [PATCH] Update publish-release.yml --- .github/workflows/publish-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 1ff5a81e..3f7d9690 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -25,7 +25,7 @@ jobs: java-version: '11' - name: Publish run: | - export VERSION="$(git describe --tags --abbrev=0)" + export VERSION="${{github.ref_name}}" export ORKES_CLIENT_VERSION=`echo ${VERSION:1}` echo Publishing version $ORKES_CLIENT_VERSION ./gradlew publish -Pversion=$ORKES_CLIENT_VERSION -PmavenCentral -Pusername=${{ secrets.SONATYPE_USERNAME }} -Ppassword=${{ secrets.SONATYPE_PASSWORD }}