cespare / reflex

Run a command when files change
MIT License
3.35k stars 135 forks source link

Add goreleaser support #69

Closed kpurdon closed 3 years ago

kpurdon commented 4 years ago

This PR adds support for the minimum needed goreleaser config to generate releases with binaries. This resolves #31 and is an alternative to #67.

An example on my fork of a release is: https://github.com/kpurdon/reflex/releases/tag/v0.2.1

This can currently be run by doing the following:

  1. Do some work, commit it, push it, create and push a tag.
  2. Make sure GITHUB_TOKEN="a_repo_scope_github_token" is set.
  3. Run goreleaser.

This is more or less from the example here: https://goreleaser.com/quick-start/.

I avoided adding any automation (TravisCI, Github Actions, ...) since that would be difficult for me to test, but those things are supported:

The process for this would be to merge, tag a new release, and run goreleaser (following my steps above) to create a new release with binaries.

kpurdon commented 4 years ago

@cespare anything I can do to help get this reviewed? Thanks!

cespare commented 4 years ago

I'll try to look into this in the next week or two.

benatkin commented 3 years ago

@kpurdon @cespare perhaps a GitHub action would make this easier. https://github.com/goreleaser/goreleaser-action

jwilner commented 3 years ago

Hey, anything I can do to help move this along? Adding prebuilt binaries would easy adoption on my team.

jwilner commented 3 years ago

As @benatkin suggested, I opened https://github.com/cespare/reflex/pull/80 providing published artifacts from a GitHub action. It should Just Work.