mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-24 05:11:15 +00:00
releaser: Correctly set final version on patch releases
This commit is contained in:
parent
d2b3f00df7
commit
e939aaed8b
1 changed files with 1 additions and 5 deletions
|
@ -53,17 +53,13 @@ type ReleaseHandler struct {
|
||||||
|
|
||||||
func (r ReleaseHandler) calculateVersions() (helpers.HugoVersion, helpers.HugoVersion) {
|
func (r ReleaseHandler) calculateVersions() (helpers.HugoVersion, helpers.HugoVersion) {
|
||||||
newVersion := helpers.MustParseHugoVersion(r.cliVersion)
|
newVersion := helpers.MustParseHugoVersion(r.cliVersion)
|
||||||
finalVersion := newVersion
|
finalVersion := newVersion.Next()
|
||||||
finalVersion.PatchLevel = 0
|
finalVersion.PatchLevel = 0
|
||||||
|
|
||||||
if newVersion.Suffix != "-test" {
|
if newVersion.Suffix != "-test" {
|
||||||
newVersion.Suffix = ""
|
newVersion.Suffix = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
if newVersion.PatchLevel == 0 {
|
|
||||||
finalVersion = finalVersion.Next()
|
|
||||||
}
|
|
||||||
|
|
||||||
finalVersion.Suffix = "-DEV"
|
finalVersion.Suffix = "-DEV"
|
||||||
|
|
||||||
return newVersion, finalVersion
|
return newVersion, finalVersion
|
||||||
|
|
Loading…
Reference in a new issue