Compare commits

...

2 commits

Author SHA1 Message Date
hugoreleaser
48e33e10af releaser: Bump versions for release of 0.112.5
[ci skip]
2023-05-29 07:27:36 +00:00
Bjørn Erik Pedersen
9e05fbaad4
releaser: Add a way to bust the CircleCI Git cache 2023-05-29 09:25:09 +02:00
3 changed files with 10 additions and 4 deletions

View file

@ -341,7 +341,7 @@ description = ""
homepage = "http://example.com/"
tags = []
features = []
min_version = "0.112.0"
min_version = "0.112.5"
[author]
name = ""

View file

@ -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: "",
}

View file

@ -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")