Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit e8d4846

Browse files
committed
add goreleaser to manage releases
1 parent 9cf1364 commit e8d4846

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
ui-dev-proxy
2+
dist/

.goreleaser.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This is an example goreleaser.yaml file with some sane defaults.
2+
# Make sure to check the documentation at http://goreleaser.com
3+
before:
4+
hooks:
5+
# you may remove this if you don't use vgo
6+
- go mod download
7+
builds:
8+
- main: ./main.go
9+
env:
10+
- CGO_ENABLED=0
11+
goos:
12+
- linux
13+
- darwin
14+
- windows
15+
goarch:
16+
- 386
17+
- amd64
18+
- arm
19+
- arm64
20+
checksum:
21+
name_template: 'checksums.txt'
22+
snapshot:
23+
name_template: "{{ .Tag }}-next"
24+
changelog:
25+
sort: asc
26+
filters:
27+
exclude:
28+
- '^docs:'
29+
- '^test:'

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ test:
88

99
fmt:
1010
go fmt ./...
11+
12+
test-release:
13+
goreleaser --snapshot --skip-publish --rm-dist
14+
15+
release:
16+
goreleaser --rm-dist

0 commit comments

Comments
 (0)