mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-23 22:51:36 +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) {
|
||||
newVersion := helpers.MustParseHugoVersion(r.cliVersion)
|
||||
finalVersion := newVersion
|
||||
finalVersion := newVersion.Next()
|
||||
finalVersion.PatchLevel = 0
|
||||
|
||||
if newVersion.Suffix != "-test" {
|
||||
newVersion.Suffix = ""
|
||||
}
|
||||
|
||||
if newVersion.PatchLevel == 0 {
|
||||
finalVersion = finalVersion.Next()
|
||||
}
|
||||
|
||||
finalVersion.Suffix = "-DEV"
|
||||
|
||||
return newVersion, finalVersion
|
||||
|
|
Loading…
Reference in a new issue