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

Use goreleaser to release to github/nfpms/homebrew(as tap) #173

Open
disaac opened this issue Dec 7, 2022 · 2 comments
Open

Use goreleaser to release to github/nfpms/homebrew(as tap) #173

disaac opened this issue Dec 7, 2022 · 2 comments
Labels
build build related issues
Milestone

Comments

@disaac
Copy link

disaac commented Dec 7, 2022

Is your feature request related to a problem? Please describe.

Releases are currently managed using wangyoucao577/go-release-action via a github workflow. This can be replaced with goreleaser providing the following

#### Homebrew

For macOS, a [homebrew](https://brew.sh) tap is provided:

    brew install rusq/tap/slackdump
  • Optionally nfpms can be used in goreleaser to generate a .deb/.rpm to ease installation on linux distributions as well.

Describe the solution you'd like

  • Replace the use of wangyoucao577/go-release-actionwith a new simplified workflow that calls goreleaser to build and release on merges to both github and homebrew.
  • Add the required .goreleaser.yml to the root of the project to provide goreleaser workflow the proper configuration to perform the releases initially just homebrew and github release.
  • Create a separate repo for the homebrew-tap formula which goreleaser will publish to. ie: rusq/homebrew-tap this will translate to the following brew install command brew install rusq/tap/slackdump
  • Update README to provide homebrew tap installation instructions. brew install rusq/tap/slackdump
    Describe alternatives you've considered
  • Submit the formula as a release to the official homebrew-core tap and manage PRs for updates via that channel. This requires more work and a PR each time a version is updated to the homebrew repo.
@rusq
Copy link
Owner

rusq commented Dec 7, 2022

Hey @disaac , thank you for this — I was thinking of replacing the wangyoucao577/go-release-action in the long run, but was procrastinating on finding the replacement. Goreleaser seems a great replacement! I'll have a look at this.

@rusq rusq added the build build related issues label Dec 26, 2022
@rusq rusq added this to the v3.0.1 milestone Jan 22, 2023
@rusq
Copy link
Owner

rusq commented Jan 24, 2023

Hey @disaac , just tried the goreleaser on my other github project, I like it much better than the go-release-action, it's much more robust, and has a very convenient CLI. Haven't tried taps yet, but surely will.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build related issues
Projects
None yet
Development

No branches or pull requests

2 participants