Skip to content

Commit 3740194

Browse files
authored
Create .goreleaser.yaml
1 parent 0273671 commit 3740194

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

.goreleaser.yaml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
project_name: go-typer
2+
3+
before:
4+
hooks:
5+
- go mod tidy
6+
7+
builds:
8+
- env:
9+
- CGO_ENABLED=0
10+
goos:
11+
- linux
12+
- darwin
13+
- windows
14+
goarch:
15+
- amd64
16+
- arm64
17+
- "386"
18+
main: ./main.go
19+
binary: "go-typer-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
20+
ldflags:
21+
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
22+
ignore:
23+
- goos: darwin
24+
goarch: "386"
25+
26+
archives:
27+
- format: tar.gz
28+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
29+
format_overrides:
30+
- goos: windows
31+
format: zip
32+
files:
33+
- LICENSE
34+
- README.md
35+
36+
nfpms:
37+
- vendor: "go-typer"
38+
homepage: "https://github.com/prime-run/go-typer"
39+
maintainer: "prime-run"
40+
description: "go-typer: A typing game in terminal built in go"
41+
license: "MIT"
42+
formats:
43+
- deb
44+
- rpm
45+
bindir: /usr/bin
46+
47+
checksum:
48+
name_template: "checksums.txt"
49+
50+
snapshot:
51+
name_template: "{{ incpatch .Version }}-next"
52+
53+
changelog:
54+
sort: asc
55+
filters:
56+
exclude:
57+
- "^docs:"
58+
- "^test:"
59+
- "^ci:"
60+
- "^chore:"
61+
62+
release:
63+
github:
64+
owner: prime-run
65+
name: go-typer
66+
prerelease: auto
67+
draft: false

0 commit comments

Comments
 (0)