diff --git a/.goreleaser.yml b/.goreleaser.yml index 6b65b50a..f3f0786b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,6 @@ # Visit https://goreleaser.com for documentation on how to customize this # behavior. +version: 2 before: hooks: - go mod tidy @@ -47,4 +48,4 @@ release: # Visit your project's GitHub Releases page to publish this release. draft: true changelog: - skip: true + disable: true diff --git a/README.md b/README.md index ff528375..67988aab 100644 --- a/README.md +++ b/README.md @@ -107,14 +107,14 @@ See [Connect to AWS using the guided setup in Splunk Observability Cloud](https: ## Release the provider -To release the provider, install https://goreleaser.com/install/ if you don't already have it, then follow these steps: +To release the provider, install https://goreleaser.com/install/ (update to v2+ in you have an outdated version), then follow these steps: -1. Update the changelog and create a release in GH (vx.y.z format) in pre-release state +1. Update the changelog and create a [release](https://github.com/splunk-terraform/terraform-provider-signalfx/releases) in GH (vx.y.z format) in **pre-release** state 1. `git pull` (Locally) 1. `export GPG_TTY=$(tty)` (avoid gpg terminal issues if using iTerm2) -1. `GITHUB_TOKEN=xxx GPG_FINGERPRINT=xxx goreleaser --rm-dist` (github token must have `repo` scope) +1. `GITHUB_TOKEN=xxx GPG_FINGERPRINT=xxx goreleaser --clean` (github token must have `repo` scope) -1. Go back to release in github and mark as released/published +1. Go back to the release in github and set "Set as the latest release"