Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Resolves #147 - Including binaries with tagged releases via GoReleaser #229

Merged
merged 2 commits into from
Nov 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Release automation via GoReleaser (goreleaser.com)
# Requires a valid GITHUB_TOKEN envar prior to running `goreleaser`
# See https://goreleaser.com/environment/ for more info
---
release:
github:
owner: golang
name: mock

builds:
- binary: mockgen
goos:
- darwin
- windows
- linux
goarch:
- amd64
- 386
env:
scevallos marked this conversation as resolved.
Show resolved Hide resolved
- CGO_ENABLED=0
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org
- GOSUMDB=sum.golang.org
main: ./mockgen/
archive:
format: tar.gz
wrap_in_directory: true
name_template: '{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
scevallos marked this conversation as resolved.
Show resolved Hide resolved
files:
- LICENSE
- README.md
checksum:
name_template: '{{ .Binary }}-{{ .Version }}-checksums.txt'
snapshot:
name_template: "snap-{{ .Commit }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- 'README'