-
Notifications
You must be signed in to change notification settings - Fork 7
/
.goreleaser.yaml
40 lines (38 loc) · 972 Bytes
/
.goreleaser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
#
# See https://goreleaser.com/customization/ for more information.
project_name: lite-reader
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
binary: lite-reader
main: ./cmd
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ldflags:
# The v prefix is stripped by goreleaser, so we need to add it back.
# https://goreleaser.com/customization/templates/#fnref:version-prefix
- "-s -w -X main.version=v{{ .Version }}"
archives:
- format: zip
name_template: >-
{{ .ProjectName }}_{{- tolower .Os }}_{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}
wrap_in_directory: true
files:
- LICENSE
- README.md
- public
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
use: github-native