Skip to content

Commit 32eb5cd

Browse files
committed
Adjust release.yml for version check
1 parent 396f664 commit 32eb5cd

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
- uses: actions/checkout@v4
1717
- name: Get the release version from the tag
1818
if: env.VERSION == ''
19-
run: echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
19+
run: |
20+
# Strip the 'v' prefix from the tag
21+
echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
2022
- name: Show the version
2123
run: |
2224
echo "version is: $VERSION"
@@ -30,7 +32,7 @@ jobs:
3032
- name: Create GitHub release
3133
env:
3234
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
run: gh release create $VERSION --draft --verify-tag --title $VERSION
35+
run: gh release create "v$VERSION" --draft --verify-tag --title "v$VERSION"
3436
outputs:
3537
version: ${{ env.VERSION }}
3638

@@ -179,4 +181,4 @@ jobs:
179181
shell: bash
180182
run: |
181183
version="${{ needs.create-release.outputs.version }}"
182-
gh release upload "$version" ${{ env.ASSET }} ${{ env.ASSET_SUM }}
184+
gh release upload "v$version" ${{ env.ASSET }} ${{ env.ASSET_SUM }}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mbase"
3-
version = "0.2.3"
3+
version = "0.2.4"
44
edition = "2021"
55
description = "Universal base encode/decode/convert CLI"
66
license = "MIT"

0 commit comments

Comments
 (0)