fix(nightly): inject correct semver 0.<next-minor>.0-nightly-abc1234 for nightly builds

This commit is contained in:
Pasha Sviderski
2026-04-22 15:41:55 +10:00
parent 47199c36ce
commit b1897ce719
3 changed files with 61 additions and 2 deletions
+8
View File
@@ -11,6 +11,14 @@ before:
report_sizes: true
git:
# Skip the stale 'nightly' tag so {{.Version}} resolves to the latest semver tag for --snapshot builds.
ignore_tags:
- nightly
snapshot:
# Semver-compliant nightly version, e.g. "0.19.0-nightly-abc1234" when the latest tag is v0.18.0.
version_template: "{{ incminor .Version }}-nightly-{{.ShortCommit}}"
builds:
- id: uncloud
main: ./cmd/uncloud