Skip to content

Commit

Permalink
Fix goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
maetthu committed Feb 10, 2020
1 parent d62f016 commit 2fa22f6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
26 changes: 19 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
before:
hooks:
- go mod tidy
builds:
- binary: greeter
ldflags:
- -s -w
env:
- env:
- CGO_ENABLED=0
binary: greeter
ldflags:
- -s -w
goos:
- linux
goarch:
- amd64
archive:
format: tar.gz
files:
archives:
- files:
- LICENSE
- README.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ install:
CGO_ENABLED=0 GOOS=linux go install -a -v -o ${OUT} ${PKG}

snapshot:
goreleaser --snapshot --rm-dist
goreleaser --snapshot --skip-publish --rm-dist

dist:
goreleaser --rm-dist
Expand Down

0 comments on commit 2fa22f6

Please sign in to comment.