File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- name : Checkout
11
- uses : actions/checkout@v2
11
+ uses : actions/checkout@v3
12
+ with :
13
+ # we have to fetch all history to be able to generate the release note. c.f. https://goreleaser.com/ci/actions/.
14
+ fetch-depth : 0
12
15
- name : Set up Go
13
16
uses : actions/setup-go@v2
14
17
with :
18
21
with :
19
22
distribution : goreleaser
20
23
version : latest
21
- args : release --rm-dist --skip-announce
24
+ args : release --clean --skip-announce
22
25
env :
23
26
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -31,13 +31,11 @@ archives:
31
31
id : my-archive
32
32
builds :
33
33
- my-build
34
- name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
35
- replacements :
36
- linux : Linux
37
- darwin : Darwin
38
- freebsd : FreeBSD
39
- 386 : i386
40
- amd64 : x86_64
34
+ name_template : >-
35
+ {{.ProjectName}}_{{.Version}}_{{.Os }}_
36
+ {{- if eq .Arch "amd64" }}x86_64
37
+ {{- else if eq .Arch "386" }}i386
38
+ {{- else }}{{ .Arch }}{{ end }}
41
39
files :
42
40
- LICENSE
43
41
- README.md
@@ -69,6 +67,10 @@ nfpms:
69
67
package_name : dataplaneapi
70
68
builds :
71
69
- my-build
70
+ file_name_template : >-
71
+ {{.ProjectName}}_{{.Version}}_{{.Os }}_
72
+ {{- if eq .Arch "386" }}i386
73
+ {{- else }}{{ .Arch }}{{ end }}
72
74
vendor : HAProxy Technologies
73
75
homepage : https://github.com/haproxytech/dataplaneapi
74
76
maintainer : Marko Juraga <mjuraga@haproxy.com>
You can’t perform that action at this time.
0 commit comments