ghosts icon indicating copy to clipboard operation
ghosts copied to clipboard

Build artifacts shouldn't be committed

Open grawlinson opened this issue 3 years ago • 3 comments

I think if Goreleaser is automatically attaching the binaries (a.k.a. artifacts) to the git release/tags, there is no need for binaries to be committed directly to the repository.

Applies to files in dist/ and ghosts in the repository root.

grawlinson avatar May 13 '21 23:05 grawlinson

Thanks George @grawlinson this is a good point.

Question for you: how would I distribute binaries for folks who don't have a Go build environment?

(Sorry for the looooong delay in replying. I missed the notification)

StevenBlack avatar Oct 15 '21 20:10 StevenBlack

Goreleaser has documentation and an example repository that makes use of GitHub Actions to create binaries using GitHub's free CI/CD and attaches them to tags as seen here.

Users can then navigate to the most recent tag and download the required binaries.

Am I understanding your question right?

grawlinson avatar Oct 15 '21 21:10 grawlinson

Yes George @grawlinson great answer. I'll do that!

StevenBlack avatar Oct 15 '21 23:10 StevenBlack