- Github Repository
- Github Token
First of all install the latest version of GoReleaser (for example via
go get github.com/goreleaser/goreleaser
Create your configuration file (
.goreleaser.yml). A basic one looks something like this:
1 2 3 4 5 6 7 8 9
# .goreleaser.yml builds: - binary: awesome-project goos: - windows - darwin - linux goarch: - amd64
Make sure to create a Github Token and add it as an environment variable as
GITHUB_TOKEN. Find out how to create your Github Token
Make sure to push at least one tag (GoReleaser uses the latest tag of your repository)
git tag -a v0.0.1 -m "Release Test" git push origin v0.0.1
You now have your first release for your github repository complete with downloadable versions for multiple plattforms and a Changelog with all your commits since the previous tag.
GoReleaser is an amazing tool which works exceptionally well and was really painless to setup.
Read up on this topic: