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