github.com/moitias/moq@v0.0.0-20240223074357-5eb0f0ba4054/.goreleaser.yml (about) 1 # This is an example goreleaser.yaml file with some sane defaults. 2 # Make sure to check the documentation at http://goreleaser.com 3 builds: 4 - env: 5 - CGO_ENABLED=0 6 goos: 7 - darwin 8 - windows 9 - linux 10 goarch: 11 - amd64 12 - arm 13 - arm64 14 ldflags: 15 - -X main.Version={{.Version}} 16 archives: 17 - name_template: >- 18 {{- .ProjectName }}_ 19 {{- if eq .Os "darwin"}}macOS 20 {{- else if eq .Os "linux"}}Linux 21 {{- else if eq .Os "windows"}}Windows 22 {{- else }}{{ .Os }}{{ end }}_ 23 {{- if eq .Arch "amd64" }}x86_64 24 {{- else if eq .Arch "386" }}i386 25 {{- else }}{{ .Arch }}{{ end }} 26 {{- if .Arm }}v{{ .Arm }}{{ end -}} 27 universal_binaries: 28 - replace: false 29 checksum: 30 name_template: 'checksums.txt' 31 snapshot: 32 name_template: "{{ .Tag }}" 33 changelog: 34 sort: asc 35 filters: 36 exclude: 37 - '^docs:' 38 - '^test:' 39 release: 40 github: 41 owner: matryer 42 name: moq