Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Latest commit

 

History

History
51 lines (32 loc) · 1.92 KB

RELEASE.md

File metadata and controls

51 lines (32 loc) · 1.92 KB

How to release puma-helper

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.

Prerequisites starter pack

  • Clone the project within your GOPATH under src/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 using go install command.

Usage guide

When the prerequisites install is done, you're ready to go and release puma-helper.

Tag your commits

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

Dry release

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.

Final release

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.

Extra bonus

Feel free to surname your release just like this and add a cool pic of it related to the name 🚀