Fix release pipeline - update GitHub Actions, Go versions, and GoReleaser config #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes several critical issues in the GitHub Actions release pipeline that were preventing successful builds and releases.
Issues Fixed
Outdated GitHub Actions
The workflows were using deprecated GitHub Actions versions:
actions/checkout@v2→actions/checkout@v4actions/setup-go@v2→actions/setup-go@v5goreleaser/goreleaser-action@v2→goreleaser/goreleaser-action@v6Incompatible Go Version
The workflows specified Go 1.17, but the project requires Go 1.23.0 according to
go.mod:1.17→1.23^1.17→^1.23Incorrect Step Order
The build workflow had steps in the wrong order, attempting to set up Go before checking out the code:
Deprecated GoReleaser Flags
Updated the deprecated
--rm-distflag to--cleanfor compatibility with GoReleaser v1.0.0+.Outdated GoReleaser Configuration
The
.goreleaser.ymlconfiguration was incompatible with modern GoReleaser versions:version: 2for modern GoReleaser API compatibilityChanges Made
.github/workflows/release.yml:.github/workflows/build.yaml:.goreleaser.yml:Testing
These changes ensure the complete release pipeline will work correctly with modern GitHub Actions, proper Go version compatibility, and updated GoReleaser configuration format.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.