We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c639c5f commit ad65be9Copy full SHA for ad65be9
.github/workflows/build.yml
@@ -4,7 +4,7 @@ on:
4
workflow_dispatch:
5
push:
6
tags:
7
- - '[0-9]+.[0-9]+.[0-9]+'
+ - 'v[0-9]+.[0-9]+.[0-9]+'
8
9
jobs:
10
build-release:
@@ -39,7 +39,7 @@ jobs:
39
- name: Determine binary version
40
run: |
41
if [[ "${GITHUB_REF}" =~ ^refs/tags/ ]]; then
42
- BINARY_VERSION="${GITHUB_REF#refs/tags/}"
+ BINARY_VERSION="${GITHUB_REF#refs/tags/v}"
43
else
44
BINARY_VERSION=$(git rev-parse --short HEAD)
45
fi
@@ -81,7 +81,7 @@ jobs:
81
82
- name: Release the artifact
83
uses: softprops/action-gh-release@v1
84
- if: startswith(github.ref, 'regs/tags/')
+ if: startswith(github.ref, 'refs/tags/')
85
with:
86
draft: true
87
files: ${{ env.PKG_ARTIFACT_PATH }}
0 commit comments