File tree 2 files changed +10
-9
lines changed
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ jobs:
20
20
go-version : 1.18
21
21
22
22
- name : Run GoReleaser
23
- uses : goreleaser/goreleaser-action@v5
23
+ uses : goreleaser/goreleaser-action@v6
24
24
with :
25
25
version : latest
26
- args : release --rm-dist
26
+ args : release --clean
27
27
workdir : cmd/volcago
28
28
env :
29
29
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
project_name : volcago
2
+ version : 2
2
3
3
4
env :
4
5
- GO111MODULE=on
@@ -17,13 +18,13 @@ builds:
17
18
- CGO_ENABLED=0
18
19
19
20
archives :
20
- - name_template : ' {{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }} '
21
- replacements :
22
- darwin : darwin
23
- linux : linux
24
- windows : windows
25
- 386 : i386
26
- amd64 : x86_64
21
+ - name_template : >-
22
+ {{- .ProjectName }}_
23
+ {{- title .Os }}_
24
+ {{- if eq .Arch "amd64" }}x86_64
25
+ {{- else if eq .Arch "386" }}i386
26
+ {{- else }}{{ .Arch }}{{ end }}
27
+ {{- if .Arm }}v{{ .Arm }}{{ end -}}
27
28
format_overrides:
28
29
- goos: windows
29
30
format: zip
You can’t perform that action at this time.
0 commit comments