Skip to content

Commit 6bd2733

Browse files
authored
Update build and release script (#91)
* Goreleaser removed archives.replacements - replacing with new format Signed-off-by: Vacha Shah <[email protected]> * Replacing --rm-dist for goreleaser to --clean Signed-off-by: Vacha Shah <[email protected]> --------- Signed-off-by: Vacha Shah <[email protected]>
1 parent 0cf92aa commit 6bd2733

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.goreleaser.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ builds:
3333
goarch: 386
3434
archives:
3535
-
36-
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
37-
replacements:
38-
darwin: macos
39-
386: x86
40-
amd64: x64
36+
name_template: >-
37+
{{- .ProjectName }}-
38+
{{- .Version }}-
39+
{{- .Os }}-
40+
{{- if eq .Arch "amd64" }}x64
41+
{{- else if eq .Arch "386" }}x86
42+
{{- else if eq .Arch "darwin" }}macos
43+
{{- else }}{{ .Arch }}{{ end }}
44+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
4145
files:
4246
- none*
4347
format_overrides:

release/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ echo 'setting cli version'
2424
export VERSION="1.2.0"
2525

2626
echo 'Generating artifacts'
27-
goreleaser --snapshot --skip-publish --rm-dist
27+
goreleaser --snapshot --skip-publish --clean
2828

2929
# goreleaser generates folder and binary too. Remove unwanted files to keep only
3030
# relevant files inside dist folder

0 commit comments

Comments
 (0)