Just push a version tag (e.g. v3.0.1
) to Github.
-
Install GoReleaser:
brew install goreleaser/tap/goreleaser
-
Create a new release tag:
git tag -am 'vX.X.X' vX.X.X git push --tags
NB! Tags of the form vX.X.X-alpha.X
will fail to upload to Chocolatey with a 504 GatewayTimeout error. The final dot is the problem; use vX.X.X-alphaX
instead.
-
Run GoReleaser:
GoReleaser requires
GITHUB_TOKEN
to be set. If you have thegh
tool installed you can probably re-use the token it uses, by callinggh auth token
:GITHUB_TOKEN=$(gh auth token) goreleaser release --clean