Skip to content

Commit

Permalink
update: update release config
Browse files Browse the repository at this point in the history
  • Loading branch information
jonyhy96 committed Aug 9, 2019
1 parent 2206103 commit 57f6aa3
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,53 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
env:
- GOFLAGS=-mod=vendor
- GO111MODULE=auto

before:
hooks:
# you may remove this if you don't use vgo
- go mod download
# - go mod download
builds:
- env:
- CGO_ENABLED=0
- id: binary
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm
- arm64
- 386
goarm:
- 6
- 7
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.buildSource=binaryRelease
- id: snap
goos:
- linux
goarch:
- amd64
- arm
- arm64
- 386
goarm:
- 6
- 7
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.buildSource=snap
archives:
- replacements:
- builds:
- binary
replacements:
linux: Linux
windows: Windows
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
changelog:
Expand Down

0 comments on commit 57f6aa3

Please sign in to comment.