Skip to content

Commit

Permalink
Use goreleaser for binary builds and homebrew formula
Browse files Browse the repository at this point in the history
  • Loading branch information
zph committed Sep 23, 2019
1 parent 0ab6aef commit d1c044d
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod download
builds:
- id: "mmake"
main: ./cmd/mmake/mmake.go

brews:
-
name: mmake
github:
owner: tj
name: mmake

url_template: "https://github.com/tj/mmake/releases/download/{{ .Tag }}/{{ .ArtifactName }}"

commit_author:
name: goreleaserbot
email: goreleaser@carlosbecker.com

folder: Formula
homepage: "https://github.com/tj/mmake"
description: "Go wrapper for mmake, a make wrapper"
skip_upload: false
test: |
system "#{bin}/mmake help"
install: |
bin.install "mmake"
archives:
- 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:'

0 comments on commit d1c044d

Please sign in to comment.