diff --git a/.gitignore b/.gitignore index 66fd13c..08b1fc7 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,6 @@ # Dependency directories (remove the comment below to include it) # vendor/ + +.local +pkged.go diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..5068d76 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,27 @@ +before: + hooks: + - go mod download + - go generate ./... +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin +archives: + - replacements: + darwin: Darwin + linux: Linux + windows: Windows + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d471566 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +default: build + +dep: + go get github.com/markbates/pkger/cmd/pkger + +build: + pkger -include /data && go build