Include binaries in release

This commit is contained in:
andig 2020-04-03 13:38:18 +02:00
parent a56cca5272
commit b674553747
2 changed files with 14 additions and 2 deletions

1
.gitignore vendored
View file

@ -7,3 +7,4 @@ evcc
linux-*.Dockerfile
!evcc.dist.yaml
!modules/**
dist

View file

@ -8,13 +8,13 @@ release:
before:
hooks:
# you may remove this if you don't need go generate
- go generate ./...
- make assets
builds:
- id: evcc
# Path to main.go file or main package.
main: main.go
ldflags:
- -X github.com/andig/evcc.Version={{.Version}} -X github.com/andig/evcc.Commit={{.ShortCommit}}
- -X github.com/andig/evcc/server.Version={{.Version}} -X github.com/andig/evcc/server.Commit={{.ShortCommit}}
env:
- CGO_ENABLED=0
goos:
@ -25,6 +25,17 @@ builds:
- arm
goarm:
- "6"
archives:
- builds:
- evcc
replacements:
amd64: 64-bit
386: 32-bit
darwin: macOS
format: tar.gz
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot: