Skip to content

Rename binary before uploading release artifacts#10

Merged
chinkan merged 1 commit intomainfrom
claude/fix-gh-action-release-6M6Pk
Feb 20, 2026
Merged

Rename binary before uploading release artifacts#10
chinkan merged 1 commit intomainfrom
claude/fix-gh-action-release-6M6Pk

Conversation

@chinkan
Copy link
Copy Markdown
Owner

@chinkan chinkan commented Feb 20, 2026

Summary

Updated the release workflow to explicitly rename the compiled binary before uploading it as a release artifact.

Key Changes

  • Added a new "Rename binary" step in the release workflow that renames the compiled binary from matrix.artifact_name to matrix.asset_name
  • Updated the artifact upload path to reference the renamed binary (matrix.asset_name) instead of the original compiled name (matrix.artifact_name)

Implementation Details

The rename operation uses a bash mv command to transform the binary name between the build output and artifact upload stages. This ensures consistency between the binary name used during compilation and the final asset name used for release distribution.

https://claude.ai/code/session_01PWxsq67n3injuTRqrwUJUG

…ions

All three non-Windows targets produced an artifact file named 'rustfox',
causing softprops/action-gh-release to fail with 'Not Found' when the
2nd and 3rd uploads tried to replace the already-uploaded asset.

Add a 'Rename binary' step that renames each built binary to its
platform-specific asset_name (e.g. rustfox-linux-x86_64) before
uploading as an artifact. The release job then receives four uniquely
named files and uploads them without collision.

https://claude.ai/code/session_01PWxsq67n3injuTRqrwUJUG
@chinkan chinkan merged commit 811b78d into main Feb 20, 2026
5 checks passed
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.

2 participants