feat(ci): improve gorelease config
This commit is contained in:
parent
e3456d34c7
commit
7ec9a9ae2c
2 changed files with 2 additions and 6 deletions
|
|
@ -30,4 +30,4 @@ releasing:
|
||||||
- when: "never"
|
- when: "never"
|
||||||
script:
|
script:
|
||||||
- export GITLAB_TOKEN="$GORELEASER_GITLAB_TOKEN"
|
- export GITLAB_TOKEN="$GORELEASER_GITLAB_TOKEN"
|
||||||
- "goreleaser release --clean --changelog=changelog.md"
|
- "goreleaser release --clean"
|
||||||
|
|
|
||||||
|
|
@ -25,11 +25,7 @@ builds:
|
||||||
# archives
|
# archives
|
||||||
archives:
|
archives:
|
||||||
- formats: ["tar.gz"]
|
- formats: ["tar.gz"]
|
||||||
name_template: >-
|
name_template: "{{.ProjectName}}-v{{.Version}}-{{ .Arch }}"
|
||||||
{{ .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
|
|
||||||
format_overrides:
|
format_overrides:
|
||||||
- goos: "windows"
|
- goos: "windows"
|
||||||
formats: ["zip"]
|
formats: ["zip"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue