Commit 8ab8fe6 1 parent 1b3bc9b commit 8ab8fe6 Copy full SHA for 8ab8fe6
File tree 2 files changed +16
-16
lines changed
2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 49
49
- uses : goreleaser/goreleaser-action@v2
50
50
if : success() && startsWith(github.ref, 'refs/tags/')
51
51
with :
52
- version : latest
52
+ version : " ~> 1.21 "
53
53
distribution : goreleaser
54
- args : release --rm-dist
54
+ args : release --clean
55
55
env :
56
56
GORELEASER_CURRENT_TAG : ${{ github.ref_name }}
57
57
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -34,28 +34,28 @@ builds:
34
34
35
35
archives :
36
36
- id : archives
37
- name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
37
+ name_template : >-
38
+ {{ .ProjectName }}_{{ .Version }}_
39
+ {{- title .Os }}_
40
+ {{- if eq .Arch "amd64" }}x86_64
41
+ {{- else if eq .Arch "386" }}i386
42
+ {{- else }}{{ .Arch }}{{ end }}
43
+ {{- if .Arm }}v{{ .Arm }}{{ end }}
38
44
wrap_in_directory : true
39
- replacements :
40
- darwin : Darwin
41
- linux : Linux
42
- windows : Windows
43
- 386 : i386
44
- amd64 : x86_64
45
45
files :
46
46
- none* # https://goreleaser.com/customization/archive/?h=archives#packaging-only-the-binaries
47
47
format_overrides :
48
48
- goos : windows
49
49
format : zip
50
50
- id : binary
51
- name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
51
+ name_template : >-
52
+ {{ .ProjectName }}_{{ .Version }}_
53
+ {{- title .Os }}_
54
+ {{- if eq .Arch "amd64" }}x86_64
55
+ {{- else if eq .Arch "386" }}i386
56
+ {{- else }}{{ .Arch }}{{ end }}
57
+ {{- if .Arm }}v{{ .Arm }}{{ end }}
52
58
format : binary
53
- replacements :
54
- darwin : Darwin
55
- linux : Linux
56
- windows : Windows
57
- 386 : i386
58
- amd64 : x86_64
59
59
files :
60
60
- none* # https://goreleaser.com/customization/archive/?h=archives#packaging-only-the-binaries
61
61
You can’t perform that action at this time.
0 commit comments