diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e2f348e..0dedfc90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -115,7 +115,7 @@ jobs: # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser # 'latest', 'nightly', or a semver - version: v1.26.2 + version: v2.20.2 args: check test: @@ -187,7 +187,7 @@ jobs: # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser # 'latest', 'nightly', or a semver - version: v1.26.2 + version: v2.20.2 args: release - name: Write latest version to file run: mkdir -p dist && printf '%s\n' "${TAG}" > dist/LATEST_VERSION diff --git a/.goreleaser.yml b/.goreleaser.yml index b9a3c2e2..d962c808 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 project_name: stackstate-cli release: github: @@ -27,13 +28,15 @@ builds: - GO111MODULE=on archives: - id: stackstate-cli - builds: + ids: - stackstate-cli name_template: '{{ .ProjectName }}-{{ .Version }}.{{ .Os }}-{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}' - format: tar.gz + formats: + - tar.gz format_overrides: - goos: windows - format: zip + formats: + - zip blobs: - provider: s3 bucket: cli-dl.stackstate.com