- Install
goreleaser
. Refer to its docs. - Set a
GITHUB_TOKEN
environment variable. Refer togoreleaser
docs for information. - Update
CHANGELOG.md
.- Mention recent changes.
- Set a version if there is not one.
- Set a release date.
- Set version in
version.go
. - Commit
CHANGELOG.md
andversion.go
. - Tag the release:
git tag -a v1.2.3 -m 'Tag v1.2.3'
. - Push the tag:
git push origin v1.2.3
. - Run
goreleaser release
. - Edit the release on GitHub to include the changelog changes.
- Make sure to push the rest of your changes.