File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 22
22
go-version : ' 1.21.5'
23
23
check-latest : true
24
24
25
+ - name : Run GoReleaser Snapshot
26
+ if : ${{ ! startsWith(github.ref, 'refs/tags/') }}
27
+ uses : goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
28
+ with :
29
+ version : latest
30
+ args : release --snapshot --clean
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+
25
34
- name : Run GoReleaser
35
+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
26
36
uses : goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
27
37
with :
28
38
version : latest
31
41
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
42
33
43
- name : Update new version in krew-index
44
+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
34
45
uses : rajatjindal/krew-release-bot@df3eb197549e3568be8b4767eec31c5e8e8e6ad8 # v0.0.46
35
46
with :
36
47
krew_template_file : cmd/plugin/krew.yaml
You can’t perform that action at this time.
0 commit comments