Skip to content

Commit

Permalink
Update build and release script (#91)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
VachaShah authored Nov 2, 2023
1 parent 0cf92aa commit 6bd2733
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,15 @@ builds:
goarch: 386
archives:
-
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: macos
386: x86
amd64: x64
name_template: >-
{{- .ProjectName }}-
{{- .Version }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x64
{{- else if eq .Arch "386" }}x86
{{- else if eq .Arch "darwin" }}macos
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
files:
- none*
format_overrides:
Expand Down
2 changes: 1 addition & 1 deletion release/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ echo 'setting cli version'
export VERSION="1.2.0"

echo 'Generating artifacts'
goreleaser --snapshot --skip-publish --rm-dist
goreleaser --snapshot --skip-publish --clean

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

0 comments on commit 6bd2733

Please sign in to comment.