Skip to content

Commit c700d2f

Browse files
committed
Set up gorelesaser
1 parent bc381e8 commit c700d2f

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.goreleaser.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
release:
2+
github:
3+
owner: oleg-balunenko
4+
name: advent-of-code
5+
6+
before:
7+
hooks:
8+
- go mod tidy
9+
10+
builds:
11+
- id: cli
12+
binary: aoc-cli
13+
goos:
14+
- darwin
15+
- windows
16+
- linux
17+
goarch:
18+
- amd64
19+
- 386
20+
- arm
21+
env:
22+
- CGO_ENABLED=0
23+
main: ./cmd/aoc-cli
24+
ldflags:
25+
- -s -w
26+
- -X main.version={{.Version}}
27+
- -X main.commit={{.ShortCommit}}
28+
- -X main.date={{.Date}}
29+
- -X main.goversion={{.Env.GOVERSION}}
30+
31+
archives:
32+
- id: cli
33+
builds:
34+
- cli
35+
format: tar.gz
36+
wrap_in_directory: true
37+
format_overrides:
38+
- goos: windows
39+
format: zip
40+
replacements:
41+
amd64: 64-bit
42+
386: 32-bit
43+
darwin: macOS
44+
linux: Tux
45+
name_template: "{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
46+
files:
47+
- LICENSE
48+
- README.md
49+
- input/*
50+
checksum:
51+
name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt"
52+
53+
snapshot:
54+
name_template: SNAPSHOT-{{ .Commit }}
55+
56+
changelog:
57+
sort: asc
58+
filters:
59+
exclude:
60+
- "^docs:"
61+
- "^test:"
62+
- "^dev:"
63+
- "README"
64+
- "^readme"
65+
- "^scripts"
66+
- "scripts:"
67+
- Merge pull request
68+
- Merge branch
69+
- Rebase on master
70+
- "^Makefile"
71+
- "goreleaser"

0 commit comments

Comments
 (0)