File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 23
23
uses : actions/setup-go@v2
24
24
with :
25
25
go-version : 1.17
26
- -
26
+ -
27
27
name : Set AUTOUPDATE_CHANNEL on tags
28
28
run : echo "AUTOUPDATE_CHANNEL=stable" >> $GITHUB_ENV
29
29
if : startsWith(github.ref, 'refs/tags/v')
@@ -46,12 +46,24 @@ jobs:
46
46
-
47
47
name : Test
48
48
run : go test -v ./...
49
- -
49
+ -
50
50
name : Set up cosign
51
51
uses : sigstore/cosign-installer@v2.0.0
52
+ -
53
+ name : Run GoReleaser for snapshot
54
+ uses : goreleaser/goreleaser-action@v2
55
+ # only for PRs and push on branches
56
+ if : startsWith(github.ref, 'refs/heads/')
57
+ with :
58
+ version : latest
59
+ args : build --rm-dist --snapshot
60
+ env :
61
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52
62
-
53
63
name : Run GoReleaser
54
64
uses : goreleaser/goreleaser-action@v2
65
+ # only for tags
66
+ if : startsWith(github.ref, 'refs/tags/v')
55
67
with :
56
68
version : latest
57
69
args : release --rm-dist
You can’t perform that action at this time.
0 commit comments