defaults: &defaults
resource_class: large
docker:
- - image: bepsays/ci-hugoreleaser:1.21900.20000
+ - image: bepsays/ci-hugoreleaser:1.21900.20001
environment: &buildenv
GOMODCACHE: /root/project/gomodcache
version: 2
environment:
<<: [*buildenv]
docker:
- - image: bepsays/ci-hugoreleaser-linux-arm64:1.21900.20000
+ - image: bepsays/ci-hugoreleaser-linux-arm64:1.21900.20001
steps:
- *restore-cache
- &attach-workspace
-HUGO_RELEASE_NAME=New release setup
-
# Release env.
# These will be replaced by script before release.
HUGORELEASER_TAG=v0.102.0
dragonfly = "DragonFlyBSD"
[release_settings]
- name = "${HUGO_RELEASE_NAME}"
+ name = "${HUGORELEASER_TAG}"
type = "github"
repository = "hugo"
repository_owner = "gohugoio"
[[archives]]
paths = ["builds/**/regular/linux/{arm64,amd64}"]
[archives.archive_settings]
+ binary_dir = "/usr/local/bin"
+ extra_files = []
[archives.archive_settings.type]
format = "_plugin"
extension = ".deb"
[[archives]]
paths = ["builds/**/extended/linux/{arm64,amd64}"]
[archives.archive_settings]
+ binary_dir = "/usr/local/bin"
+ extra_files = []
name_template = "{{ .Project }}_extended_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
[archives.archive_settings.type]
format = "_plugin"
if err != nil {
return nil, err
}
+ branch = strings.TrimSpace(branch)
+
if !strings.HasPrefix(branch, prefix) {
return nil, fmt.Errorf("branch %q is not a release branch", branch)
}
- logf("Branch: %s\n", branch)
-
version := strings.TrimPrefix(branch, prefix)
version = strings.TrimPrefix(version, "v")
+
+ logf("Branch: %s|Version: v%s\n", branch, version)
+
rh := &ReleaseHandler{branchVersion: version, skipPush: skipPush, try: try, step: step}
if try {