Install goreleaser from https://goreleaser.com/install/
export GORELEASER_PREVIOUS_TAG=v0.4.1
export GORELEASER_CURRENT_TAG=v0.5.0
git fetch --all --tags
git checkout tags/$GORELEASER_CURRENT_TAG -b branch-for-tag-$GORELEASER_CURRENT_TAG
goreleaser release --clean