Skip to content

Commit

Permalink
feat(#15): handle binaries
Browse files Browse the repository at this point in the history
Closes #15
  • Loading branch information
sascha-andres committed Sep 10, 2022
1 parent 36586d3 commit 5dc80a3
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,5 @@ fabric.properties
*.code-workspace

# End of https://www.toptal.com/developers/gitignore/api/go,intellij,visualstudiocode

dist/
32 changes: 32 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
# sboms:
# - artifacts: archive
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.PHONY: grpc_go

release: ## upload release
goreleaser release --rm-dist

snapshot: ## Create a snapshot
goreleaser release --snapshot --rm-dist

# Absolutely awesome: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help:
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

.DEFAULT_GOAL := help

0 comments on commit 5dc80a3

Please sign in to comment.