Improve nightly version handling (#2598)

Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
Andreas Linde 2022-02-20 14:11:06 +01:00 • committed by GitHub
parent 4823b92dbc
commit 17d6a5c17c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 107 additions and 60 deletions

View file

@ -3,16 +3,14 @@ release:
github:
owner: evcc-io
name: evcc
# extra_files:
# - glob: evcc_*.image.gz
# - glob: evcc_*.rootfs.gz
builds:
- id: evcc
main: main.go
flags:
- -tags=release
ldflags:
- -X github.com/evcc-io/evcc/server.Version={{.Version}} -X github.com/evcc-io/evcc/server.Commit={{.ShortCommit}} -s -w
- -X github.com/evcc-io/evcc/server.Version={{.Version}} -s -w
env:
- CGO_ENABLED=0
goos:
@ -30,6 +28,7 @@ builds:
goarch: arm
- goos: windows
goarch: arm64
archives:
- builds:
- evcc
@ -41,12 +40,16 @@ archives:
format: zip
files:
- evcc.dist.yaml
universal_binaries:
- replace: true
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
@ -55,6 +58,7 @@ changelog:
- '^bump'
- '^docs:'
- '^test:'
nfpms:
- id: default
package_name: evcc
@ -77,6 +81,7 @@ nfpms:
postinstall: ./packaging/scripts/postinstall.sh
preremove: ./packaging/scripts/preremove.sh
postremove: ./packaging/scripts/postremove.sh
brews:
- tap:
owner: evcc-io