Skip to content

Commit 6f7b13b

Browse files
committed
fix: add the goreleaser config
1 parent 9c183dc commit 6f7b13b

File tree

2 files changed

+39
-5
lines changed

2 files changed

+39
-5
lines changed

.gitignore

-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
.go-project.mk
2-
.goreleaser.yml
3-
devtool
4-
.devtool.config
5-
.vscode
61
dist/

.goreleaser.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
env:
2+
- CGO_ENABLED=0
3+
- GO111MODULE=on
4+
- GOPROXY=https://proxy.golang.org
5+
before:
6+
hooks:
7+
#- go mod tidy
8+
builds:
9+
- ldflags:
10+
- -X git.psu.edu/swe-golang/buildversion.commit={{.ShortCommit}}
11+
- -X git.psu.edu/swe-golang/buildversion.version={{.Version}}
12+
- -X git.psu.edu/swe-golang/buildversion.buildDate={{.Date}}
13+
flags:
14+
- -trimpath
15+
goos:
16+
- windows
17+
- darwin
18+
- linux
19+
goarch:
20+
- amd64
21+
checksum:
22+
name_template: 'checksums.txt'
23+
snapshot:
24+
name_template: "{{ .Tag }}-SNAPSHOT-{{ .ShortCommit }}"
25+
changelog:
26+
sort: asc
27+
filters:
28+
exclude:
29+
- '^docs:'
30+
- '^test:'
31+
- '^ci:'
32+
- Merge pull request
33+
- Merge branch
34+
brews:
35+
- tap:
36+
owner: pennstate
37+
name: homebrew-tap
38+
folder: Formula
39+

0 commit comments

Comments
 (0)