Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for building release binaries #53

Merged
merged 1 commit into from Jan 1, 2018
Merged

Added support for building release binaries #53

merged 1 commit into from Jan 1, 2018

Conversation

danielsreichenbach
Copy link
Contributor

This replaces the not longer maintained goxc tooling with goreleaser, allowing to automatically push release binaries/archives with checksums to GitHub tags.

Why?!

Automate a tedious task, while adding in a few additional platforms and common features such as checksums for all users.

Possible improvements

  • use fpm to create installable packages

Requirements

You need to export a GITHUB_TOKEN environment variable, which should contain a GitHub token with the repo scope selected. It will be used to deploy releases to your GitHub repository. Create a token here.

$ export GITHUB_TOKEN=`YOUR_TOKEN`

Pushing a release

Tag and push as usual, e.g.

$ git tag -a 1.14.0 -m "First release"
$ git push origin 1.14.0

Now you can run GoReleaser at the root of the repository:

$ goreleaser

Building current state

To create a build for the current commit hash active, you can execute

$ goreleaser --snapshot --rm-dist

@JamesClonk
Copy link
Owner

oh, sounds great, gonna try that right now! 👍 😄

@JamesClonk JamesClonk merged commit 8e86146 into JamesClonk:master Jan 1, 2018
@danielsreichenbach danielsreichenbach deleted the go_releaser branch February 11, 2018 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants