Skip to content

Commit 2a5d40b

Browse files
authored
Merge pull request #5 from SmilingPixel/fix/github_workflow_0728
trigger releaser only for version tag
2 parents c47f599 + eaf0c6d commit 2a5d40b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/go-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ name: goreleaser
55
on:
66
push:
77
tags:
8-
- '*'
8+
- 'v[0-9]+.[0-9]+.[0-9]+*' # This pattern matches tags like v1.0.0, v1.2.3, v1.0.0-alpha, etc.
9+
branches:
10+
- 'main'
11+
- 'workflow/*'
912

1013
# Allows you to run this workflow manually from the Actions tab
1114
workflow_dispatch:

0 commit comments

Comments
 (0)