Skip to content

Commit

Permalink
ci: fix archive template format for snapcraft
Browse files Browse the repository at this point in the history
  • Loading branch information
achannarasappa committed May 21, 2024
1 parent 502f494 commit 2921055
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,13 @@ nfpms:
snapcrafts:
-
id: ticker
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ if eq .Arch "darwin" }}mac{{else}}{{ .Arch }}{{ end }}"
name_template: >-
{{- .ProjectName }}-
{{- .Version }}-
{{- if eq .Os "darwin" }}mac
{{- else}}{{ .Os }}{{ end }}-
{{- .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}
{{- if .Mips }}-{{ .Mips }}{{ end }}
replacements:
darwin: mac
publish: true
Expand Down

0 comments on commit 2921055

Please sign in to comment.