Skip to content

Commit

Permalink
Fix release version not added to binaries (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Apr 3, 2020
1 parent 4f5e348 commit 835d0dc
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
release:
# Repo in which the release will be created.
github:
owner: volkszaehler
name: mbmd
before:
hooks:
# you may remove this if you don't need go generate
- go generate ./...
- make assets
builds:
- id: mbmd
# Path to main.go file or main package.
- id: main
main: main.go
ldflags:
- -X github.com/volkszaehler/mbmd.Version={{.Version}} -X github.com/volkszaehler/mbmd.Commit={{.ShortCommit}}
- -X github.com/volkszaehler/mbmd/server.Version={{.Version}} -X github.com/volkszaehler/mbmd/server.Commit={{.ShortCommit}}
env:
- CGO_ENABLED=0
goos:
Expand All @@ -25,6 +20,17 @@ builds:
- arm
goarm:
- "6"
archives:
- builds:
- main
replacements:
amd64: 64-bit
386: 32-bit
darwin: macOS
format: tar.gz
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down

0 comments on commit 835d0dc

Please sign in to comment.