diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ccd9bd..1e6b859 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,8 +50,9 @@ jobs: working-directory: ./java - name: Publish Java release - run: gradle publish + run: | + export RELEASE_VERSION=$(echo "${{ github.ref_name }}" | cut -c2-) + gradle publish working-directory: ./java env: - RELEASE_VERSION: ${GITHUB_REF_NAME:1} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}