- Make sure that
gitand goreleaser are installed. - Checkout to a commit you would like to create a release against.
- Run
go mod vendorandgo mod tidy. - Make sure that
git statusis in clean state. Commit all vendor changes and source code changes. - Uncomment
draft: truein.goreleaser.ymlif this is a test release. - Create a
gittag with desired release version and release name:git tag -a 0.1.0 -m "First release", where0.1.0is release version andFirst releaseis release name. - Push the created tag to the repository:
git push origin 0.1.0. - Check the created GitHub release.