Skip to content

Commit

Permalink
change release names
Browse files Browse the repository at this point in the history
  • Loading branch information
kpym committed Oct 22, 2024
1 parent abeb542 commit 61e47e7
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
version: 2
project_name: gm
env:
- GOLDMARK_VERSION={{ if index .Env "GOLDMARK_VERSION" }}{{ .Env.GOLDMARK_VERSION }}{{ else }}--{{ end }}
Expand All @@ -16,24 +15,15 @@ builds:
ldflags:
- "-s -w -X 'main.version={{ .Version }}' -X 'main.goldmarkVersion={{ .Env.GOLDMARK_VERSION }}'"
archives:
-
# DEPRECATED: `archives.replacements` should not be used anymore, check https://goreleaser.com/deprecations#archivesreplacements for more info
# - replacements:
# darwin: MacOS
# linux: Linux
# windows: Windows
# 386: 32bit
# amd64: 64bit
# We replace this with the following:
name_template: >-
- name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- if eq .Os "darwin" }}MacOS
{{- else if eq .Os "linux" }}Linux
{{- else if eq .Os "windows" }}Windows
{{- else }}{{ .Os }}
{{- end }}_
{{- if eq .Arch "amd64" }}64bit
{{- else if eq .Arch "386" }}32bit
{{- if eq .Arch "amd64" }}intel64
{{- else if eq .Arch "386" }}intel32
{{- else }}{{ .Arch }}
{{- end }}
format_overrides:
Expand All @@ -42,7 +32,7 @@ archives:
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}"
version_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
Expand Down

0 comments on commit 61e47e7

Please sign in to comment.