chore: semver-compliant version for dev and nightly builds (#32663)

This commit is contained in:
andig 2026-08-09 15:00:31 +02:00 • committed by GitHub
parent c1fac30171
commit 09c2ce3055
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 103 additions and 64 deletions

View file

@ -11,7 +11,7 @@ builds:
- -trimpath
- -tags=release
ldflags:
- -X github.com/evcc-io/evcc/util.Version={{ .Tag }} -X github.com/evcc-io/evcc/util.Commit={{ .ShortCommit }} -s -w
- -X github.com/evcc-io/evcc/util.Version={{ .Version }} -X github.com/evcc-io/evcc/util.Commit={{ .ShortCommit }} -s -w
env:
- CGO_ENABLED=0
goos:
@ -56,7 +56,8 @@ checksum:
name_template: "checksums.txt"
snapshot:
version_template: '{{ .Version }}{{ if eq (len (split .Version ".")) 2 }}.0{{ end }}+{{ .Timestamp }}'
# semver pre-release of the upcoming version
version_template: "{{ incminor .Version }}-dev+{{ .ShortCommit }}"
changelog:
sort: asc