Add GoReleaser and pre-built binary distribution#16
Merged
ChrisJBurns merged 1 commit intomainfrom Jan 15, 2026
Merged
Conversation
This change improves action performance by using pre-built binaries instead of compiling on every run. **Changes:** - Add `.goreleaser.yml` configuration for multi-platform binary builds - Builds for linux/darwin on amd64/arm64 - Creates GitHub releases with checksums - Add `.github/workflows/release.yml` workflow - Triggers on version tags (v*) - Runs tests before release - Uses GoReleaser to build and publish binaries - Update `action.yml` to download pre-built binaries - Downloads binary matching the action's version tag - Auto-detects OS and architecture - Validates version tag format (requires @vX.Y.Z) - Clear error messages for invalid usage - Update `.gitignore` to exclude GoReleaser dist/ directory **Performance improvement:** - Before: ~30 seconds (compile on every run) - After: ~2 seconds (download pre-built binary) **Breaking change:** - Action must now be referenced with a version tag (e.g., @v1.0.0) - Using @main or branch names is no longer supported Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR improves action performance by using pre-built binaries instead of compiling Go code on every run.
Changes
.goreleaser.yml.github/workflows/release.ymlv*tags to build and publish releasesaction.ymlgo run.gitignoredist/directoryPerformance Improvement
How It Works
v1.2.0, the release workflow runs@v1.2.0, the action downloads the matching binaryVersion Validation
The action now validates that it's referenced with a proper version tag:
Error messages guide users to the correct usage:
Breaking Change
@v1.0.0)Using
@mainor branch names is no longer supported. This ensures reproducible builds and better security.Test plan
🤖 Generated with Claude Code