From 998e1cb3df4687cd13e8c7b5cbc4d2db447303e0 Mon Sep 17 00:00:00 2001 From: tanner Date: Mon, 18 Oct 2021 18:00:11 -0500 Subject: [PATCH] fix tag version for deploy version --- .github/workflows/publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d665d67..a6da1a7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,6 +20,9 @@ jobs: - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b - name: Publish package - run: gradle -Pversion="$github.ref" publish + run: | + # Strip git ref prefix from version + VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') + ./gradlew -Pversion=$VERSION publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}