diff --git a/.goreleaser.yml b/.goreleaser.yml index 74d71a1b8..1a170dbec 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -9,35 +9,37 @@ before: hooks: - make resolve builds: -- env: - - CGO_ENABLED=0 - ldflags: -s -w -X github.com/kyma-project/cli/cmd/kyma/version.Version={{.Version}} - main: ./cmd/ - goos: - - darwin - - linux - - windows - ignore: - - goos: darwin - goarch: 386 + - env: + - CGO_ENABLED=0 + ldflags: -s -w -X github.com/kyma-project/cli/cmd/kyma/version.Version={{.Version}} + main: ./cmd/ + goos: + - darwin + - linux + - windows + ignore: + - goos: darwin + goarch: 386 archives: -- replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 - name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" - format_overrides: - - goos: windows - format: zip + - replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 + name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" + format_overrides: + - goos: windows + format: zip checksum: - name_template: 'checksums.txt' + name_template: "checksums.txt" snapshot: name_template: "{{ .Tag }}-next" changelog: + use: github sort: asc filters: exclude: - - '^docs:' - - '^test:' + - "^docs:" + - "^test:" + - "^bump" diff --git a/hack/release.sh b/hack/release.sh index 83d4505fb..843c57ead 100755 --- a/hack/release.sh +++ b/hack/release.sh @@ -35,10 +35,8 @@ main() { delete_stable_tag get_new_release_version get_current_release_version - # generate release changelog - docker run --rm -v "${CLI_DIR}":/repository -w /repository -e FROM_TAG="${CURRENT_RELEASE_VERSION}" -e NEW_RELEASE_TITLE="${NEW_RELEASE_VERSION}" -e GITHUB_AUTH="${BOT_GITHUB_TOKEN}" -e CONFIG_FILE=.github/package.json eu.gcr.io/kyma-project/changelog-generator:0.2.0 sh /app/generate-release-changelog.sh - # release CLI with release notes generated by changelog-generator - curl -sL https://git.io/goreleaser | VERSION=v0.118.2 bash -s -- --release-notes .changelog/release-changelog.md + # release CLI with release notes generated by goreleaser + curl -sL https://git.io/goreleaser | VERSION=v1.11.4 bash -s -- } main