Skip to content

Commit 4060609

Browse files
committed
chore: automate release process with GoReleaser
1 parent 2d18b50 commit 4060609

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/goreleaser.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
archives:
2+
- files:
3+
- LICENSE
4+
- README.md
5+
format: zip
6+
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
7+
before:
8+
hooks:
9+
- go mod tidy
10+
builds:
11+
- binary: '{{ .ProjectName }}_{{ .Version }}'
12+
main: cmd/main.go
13+
flags:
14+
- -trimpath
15+
goarch:
16+
- 386
17+
- amd64
18+
goos:
19+
- darwin
20+
- linux
21+
- windows
22+
mod_timestamp: '{{ .CommitTimestamp }}'
23+
changelog:
24+
skip: true
25+
checksum:
26+
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
27+
algorithm: sha256
28+
dist: build
29+
env:
30+
- CGO_ENABLED=0
31+
release:
32+
draft: true

0 commit comments

Comments
 (0)