The release process is done using Goreleaser.
Goreleaser configuration file is already created and formatted. it can be found as .goreleaser.yml
at the root path of the repository.
- Clone the project within your
GOPATH
undersrc/github.com/dimelo/puma-helper
. - Follow the official install guide based on the OS you want to build the binary.
- Get and export a
GITHUB_TOKEN
just here, which should contain a valid GitHub token with the repo scope, in your env bash/zsh. - Install
rpm
package from your package manager. - Go get
github.com/goreleaser/nfpm
and install usinggo install
command.
When the prerequisites install is done, you're ready to go and release puma-helper
.
In first, tag your commits as a release using semantic versioning and push it.
$ git tag -a v0.1.0 -m "First release"
$ git push origin v0.1.0
Your new tag is now push on Github, you can found it here but without any context or binaries. This is the next step.
Just follow the next lines to check if everything works fine, before doing the final release process.
goreleaser release --skip-publish --rm-dist
--rm-dist
option is here to clean up your build folder.
When the build release result is succeeded
, you just have to follow in the same way the last command without the --skip-publish
option.
goreleaser release --rm-dist
If succeeded, the new release will appear here.
Feel free to surname your release just like this and add a cool pic of it related to the name 🚀