diff --git a/commands/new.go b/commands/new.go index 6760bf719..80e2acd56 100644 --- a/commands/new.go +++ b/commands/new.go @@ -341,7 +341,7 @@ description = "" homepage = "http://example.com/" tags = [] features = [] -min_version = "0.112.0" +min_version = "0.112.5" [author] name = "" diff --git a/common/hugo/version_current.go b/common/hugo/version_current.go index b101e532b..adc87aa42 100644 --- a/common/hugo/version_current.go +++ b/common/hugo/version_current.go @@ -17,7 +17,7 @@ package hugo // This should be the only one. var CurrentVersion = Version{ Major: 0, - Minor: 113, - PatchLevel: 0, - Suffix: "-DEV", + Minor: 112, + PatchLevel: 5, + Suffix: "", } diff --git a/releaser/releaser.go b/releaser/releaser.go index e50a3ba31..39e99275e 100644 --- a/releaser/releaser.go +++ b/releaser/releaser.go @@ -46,6 +46,12 @@ func New(skipPush, try bool, step int) (*ReleaseHandler, error) { return nil, fmt.Errorf("branch %q is not a release branch", branch) } + // Trim any cache busting suffix, e.g "release-0.90.0-take2" + takeIdx := strings.Index(branch, "-take") + if takeIdx > 0 { + branch = branch[:takeIdx] + } + version := strings.TrimPrefix(branch, prefix) version = strings.TrimPrefix(version, "v")