Skip to content

Commit ad65be9

Browse files
committed
ci: Release on tag names starting with 'v'
1 parent c639c5f commit ad65be9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
tags:
7-
- '[0-9]+.[0-9]+.[0-9]+'
7+
- 'v[0-9]+.[0-9]+.[0-9]+'
88

99
jobs:
1010
build-release:
@@ -39,7 +39,7 @@ jobs:
3939
- name: Determine binary version
4040
run: |
4141
if [[ "${GITHUB_REF}" =~ ^refs/tags/ ]]; then
42-
BINARY_VERSION="${GITHUB_REF#refs/tags/}"
42+
BINARY_VERSION="${GITHUB_REF#refs/tags/v}"
4343
else
4444
BINARY_VERSION=$(git rev-parse --short HEAD)
4545
fi
@@ -81,7 +81,7 @@ jobs:
8181

8282
- name: Release the artifact
8383
uses: softprops/action-gh-release@v1
84-
if: startswith(github.ref, 'regs/tags/')
84+
if: startswith(github.ref, 'refs/tags/')
8585
with:
8686
draft: true
8787
files: ${{ env.PKG_ARTIFACT_PATH }}

0 commit comments

Comments
 (0)