File tree Expand file tree Collapse file tree 2 files changed +16
-32
lines changed Expand file tree Collapse file tree 2 files changed +16
-32
lines changed Original file line number Diff line number Diff line change @@ -5,33 +5,17 @@ builds:
5
5
- binary : mirror
6
6
env :
7
7
- CGO_ENABLED=0
8
+ main : ./cmd/mirror/
9
+ flags :
10
+ - -trimpath
11
+ ldflags : -s -w
8
12
goos :
9
- - darwin
10
13
- linux
14
+ - darwin
11
15
- windows
12
16
goarch :
13
17
- amd64
14
- - 386
15
18
- arm64
16
- - arm
17
- goarm :
18
- - 6
19
- ignore :
20
- - goos : windows
21
- goarm : 6
22
- - goos : windows
23
- goarch : arm64
24
- - goos : linux
25
- goarm : 6
26
- - goos : darwin
27
- goarch : 386
28
- main : ./cmd/mirror/
29
- flags :
30
- - -trimpath
31
- ldflags : -s -w
32
-
33
- checksum :
34
- name_template : ' checksums.txt'
35
19
36
20
changelog :
37
21
sort : asc
@@ -45,14 +29,15 @@ changelog:
45
29
- Merge pull request
46
30
- Merge branch
47
31
32
+
33
+ checksum :
34
+ name_template : ' checksums.txt'
35
+
36
+
48
37
archives :
49
- - name_template : ' {{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
50
- replacements :
51
- darwin : darwin
52
- linux : linux
53
- windows : windows
54
- 386 : i386
55
- amd64 : x86_64
38
+ - format : tar.gz
39
+ name_template : >-
40
+ {{ .ProjectName }}_{{- tolower .Os }}_{{ .Arch }}
56
41
format_overrides :
57
42
- goos : windows
58
43
format : zip
Original file line number Diff line number Diff line change @@ -62,8 +62,7 @@ cover: ## Run Coverage
62
62
63
63
test-release : bin/goreleaser
64
64
goreleaser release --help
65
- goreleaser release -f .goreleaser.yaml \
66
- --skip-validate --skip-publish --clean
65
+ goreleaser release --skip=publish --skip=validate --clean
67
66
68
67
# Install ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69
68
@@ -77,8 +76,8 @@ bin/golangci-lint: INSTALL_URL=github.com/golangci/golangci-lint@v1.55.2
77
76
bin/golangci-lint :
78
77
$(call install_go_bin, golangci-lint, $(INSTALL_URL ) )
79
78
80
- bin/goreleaser : # # Installs golangci-lint @v1.17.2 (if not exists)
81
- bin/goreleaser : INSTALL_URL=github.com/goreleaser/goreleaser-lint @v1.17.2
79
+ bin/goreleaser : # # Installs goreleaser @v1.24.0 (if not exists)
80
+ bin/goreleaser : INSTALL_URL=github.com/goreleaser/goreleaser@v1.24.0
82
81
bin/goreleaser :
83
82
$(call install_go_bin, goreleaser, $(INSTALL_URL ) )
84
83
You can’t perform that action at this time.
0 commit comments