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 }}