From ffb8810219791ddc2adf00134cc5cadc1c7008bf Mon Sep 17 00:00:00 2001 From: Chip Kent <5250374+chipkent@users.noreply.github.com> Date: Fri, 17 May 2024 15:59:02 -0600 Subject: [PATCH] Extract a proper sever from a version tag to fix the build (#122) Whls are not building because the tags are not proper semvers. The "v" prefix needs to be stripped. --- .github/workflows/build-and-publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index acc2f196..5e2e0543 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -64,7 +64,8 @@ jobs: echo "::set-output name=version::0.0.0.dev${PR_NUMBER}" fi else - echo "::set-output name=version::${{ github.event.release.tag_name }}" + SEMVER="${TAG_NAME:1}" + echo "::set-output name=version::${SEMVER}" fi - name: Build env: