Checkout to a commit you would like to create a release against.
Run go mod vendor and go mod tidy.
Make sure that git status is in clean state. Commit all vendor changes and source code changes.
Uncomment draft: true in .goreleaser.yml if this is a test release.
Create a git tag with desired release version and release name:
git tag -a 0.1.0 -m "First release", where 0.1.0 is release
version and First release is release name.
Push the created tag to the repository: git push origin 0.1.0.