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

Add a goreleaser configuration and workflow #205

Merged
merged 2 commits into from
Dec 9, 2021

Conversation

dominics
Copy link
Contributor

@dominics dominics commented Dec 7, 2021

Adds a .goreleaser.yml and a Github Actions workflow to do a release when a new tag is pushed. Fixes #204

The config was generated with goreleaser init, then modified to:

  • turn on GO111MODULE
  • point at cmd/desync as main
  • ignore old arm64 versions on go 1.15 (see below)

This configuration is using the same Go version as the verify workflow (1.15), so windows/arm64 and darwin/arm64 platforms are ignored until we're using Go 1.16/1.17 (so, no Apple Silicon build yet). This ignore happens anyway in the latest versions of goreleaser, but wasn't happening on the slightly older version of goreleaser included in the action workflow (so, we'd fail like this)

This configuration runs a release workflow on tag, and produces releases that look something like this (but with a slightly nicer changelog once this squash-merges)

image

Copy link
Owner

@folbricht folbricht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I think we should update go.mod to require Go 1.16, especially if that allows producing binaries for more platforms automatically. Would you like to make a PR for that?

@folbricht folbricht merged commit e62c46d into folbricht:master Dec 9, 2021
@dominics dominics deleted the goreleaser branch December 12, 2021 22:18
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.

enhancement: binary releases
2 participants