Skip to content

Commit 13ceb65

Browse files
committed
initial goreleaser config
1 parent f569dd2 commit 13ceb65

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
**/.DS_Store
1818
/local
19-
/dist
19+
dist/

.goreleaser.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
before:
2+
hooks:
3+
# You may remove this if you don't use go modules.
4+
- go mod tidy
5+
builds:
6+
- env:
7+
goos:
8+
- darwin
9+
goarch:
10+
- amd64
11+
archives:
12+
- replacements:
13+
386: i386
14+
amd64: x86_64
15+
checksum:
16+
name_template: 'checksums.txt'
17+
snapshot:
18+
name_template: "{{ .Tag }}-next"
19+
changelog:
20+
sort: asc
21+
filters:
22+
exclude:
23+
- '^docs:'
24+
- '^test:'

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11

22
build:
3-
go build -o local/topframe .
3+
go build -o local/topframe .
4+
5+
release:
6+
goreleaser --snapshot --skip-publish --rm-dist
7+
8+
clean:
9+
rm -rf ./dist

0 commit comments

Comments
 (0)