feat(ci): improve gorelease config

This commit is contained in:
Simon Cornet 2025-04-03 11:35:27 +02:00
commit 7ec9a9ae2c
2 changed files with 2 additions and 6 deletions

View file

@ -30,4 +30,4 @@ releasing:
- when: "never"
script:
- export GITLAB_TOKEN="$GORELEASER_GITLAB_TOKEN"
- "goreleaser release --clean --changelog=changelog.md"
- "goreleaser release --clean"

View file

@ -25,11 +25,7 @@ builds:
# archives
archives:
- formats: ["tar.gz"]
name_template: >-
{{ .ProjectName }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{-
else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm
}}v{{ .Arm }}{{ end }}
# use zip for windows archives
name_template: "{{.ProjectName}}-v{{.Version}}-{{ .Arch }}"
format_overrides:
- goos: "windows"
formats: ["zip"]