mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	releaser: Correctly set final version on patch releases
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user