From 261acbfc66c059efbd5da8beda00596ecbfdd502 Mon Sep 17 00:00:00 2001 From: Patrick D'appollonio <930925+patrickdappollonio@users.noreply.github.com> Date: Tue, 27 Aug 2024 19:34:07 -0400 Subject: [PATCH] Improve code. --- .github/workflows/release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bacb3cc..60bdb26 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -33,8 +33,9 @@ jobs: - uses: actions/checkout@v4 - run: | # Update the version in Cargo.toml - GITHUB_REF="${GITHUB_REF#v}" - sed -i "s/^version = .*/version = \"$GITHUB_REF\"/" Cargo.toml + TAG_NAME="${{ github.event.release.tag_name }}" + TAG_NAME="${TAG_NAME#v}" + sed -i "s/^version = .*/version = \"$TAG_NAME\"/" Cargo.toml - uses: taiki-e/upload-rust-binary-action@v1 with: bin: gc-rust