From f5f6f20bb22df7511223fc3fe7bf8b43d29d4a57 Mon Sep 17 00:00:00 2001 From: James Sturtevant Date: Thu, 10 Jul 2025 18:37:35 +0000 Subject: [PATCH] Use the branch name to create the release Signed-off-by: James Sturtevant --- .github/workflows/CreateRelease.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/CreateRelease.yml b/.github/workflows/CreateRelease.yml index f2bc1f3..9b1afca 100644 --- a/.github/workflows/CreateRelease.yml +++ b/.github/workflows/CreateRelease.yml @@ -57,18 +57,13 @@ jobs: if: ${{ contains(github.ref, 'refs/heads/release/') }} run: cargo package -p hyperlight-wasm shell: bash - - name: Install minver_rs - run: | - cargo install minver_rs - shell: bash - name: Set HYPERLIGHTWASM_VERSION run: | - git fetch --tags || true - export MINVER_TAG_PREFIX="v" - export MINVER_AUTO_INCREMENT_LEVEL="Minor" - export MINVER_PRERELEASE_IDENTIFIER="preview" - echo "HYPERLIGHTWASM_VERSION=$(minver)" >> $GITHUB_ENV - echo "HYPERLIGHTWASM_VERSION=$(minver)" + git fetch --tags + version=$(echo "${{ github.ref }}" | sed -E 's#refs/heads/release/v##') + echo "HYPERLIGHTWASM_VERSION=$version" >> $GITHUB_ENV + echo "HYPERLIGHTWASM_VERSION=$version" + if: ${{ contains(github.ref, 'refs/heads/release/') }} shell: bash - name: Download Wasm Modules uses: actions/download-artifact@v4