talm
/
.goreleaser.yaml
40 строк · 1015.0 Байт
1# This is an example .goreleaser.yml file with some sensible defaults.
2# Make sure to check the documentation at https://goreleaser.com
3
4# The lines below are called `modelines`. See `:help modeline`
5# Feel free to remove those if you don't want/need to use them.
6# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7# vim: set ts=2 sw=2 tw=0 fo=cnqoj
8
9version: 1
10
11before:
12hooks:
13# You may remove this if you don't use go modules.
14- go mod tidy
15builds:
16- env:
17- CGO_ENABLED=0
18goos:
19- linux
20- windows
21- darwin
22ldflags:
23- -X main.Version={{.Version}}
24
25archives:
26- format: binary
27# this name template makes the OS and Arch compatible with the results of `uname`.
28name_template: >-
29{{ .ProjectName }}-
30{{- tolower (title .Os) }}-
31{{- if eq .Arch "386" }}i386
32{{- else }}{{ .Arch }}{{ end }}
33{{- if .Arm }}v{{ .Arm }}{{ end }}
34
35changelog:
36sort: asc
37filters:
38exclude:
39- "^docs:"
40- "^test:"
41