Skip to content

Commit

Permalink
feat: goreleaser use
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Jan 28, 2019
1 parent 98a44c0 commit 9f97a5d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,5 @@ __generated__
# BINARY File #
######################
imgdiff

dist
28 changes: 28 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Documentation at http://goreleaser.com
# Before release, create tag by: git tag -a v1.2.0 -m "Release: v1.2.0" && git push origin v1.2.0
before:
hooks:
- go mod vendor
- go generate ./...
- gometalinter.v2 ./... --vendor --deadline=1m --disable-all --enable=gosec
- golangci-lint run --enable-all
builds:
- env:
- CGO_ENABLED=0
archive:
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
lint:
gometalinter.v2 ./... --vendor --deadline=1m --disable-all --enable=gosec
golangci-lint run --enable-all

0 comments on commit 9f97a5d

Please sign in to comment.