Skip to content

Upload platform-specific release assets for mise compatibility#4

Merged
nsheaps merged 3 commits intomainfrom
claude/enable-op-exec-mise-A5XhH
Mar 5, 2026
Merged

Upload platform-specific release assets for mise compatibility#4
nsheaps merged 3 commits intomainfrom
claude/enable-op-exec-mise-A5XhH

Conversation

@nsheaps
Copy link
Copy Markdown
Owner

@nsheaps nsheaps commented Mar 5, 2026

Summary

This change adds a step to the release workflow that uploads platform-specific copies of the op-exec binary to GitHub releases. This enables seamless installation via mise install ubi:nsheaps/op-exec by providing assets with the OS/arch naming patterns that the ubi package manager expects.

Key Changes

  • Added "Upload release assets" step to the release workflow that:
    • Creates platform-specific copies of the op-exec binary for Linux (amd64, arm64) and macOS (amd64, arm64)
    • Uploads all four platform variants to the GitHub release using the gh CLI
    • Cleans up temporary platform-specific files after upload

Implementation Details

  • The script uses a loop to generate copies with the naming convention op-exec-{platform} (e.g., op-exec-linux-amd64)
  • Although op-exec is a platform-independent bash script, the ubi package manager requires assets to follow OS/arch naming patterns for proper platform detection
  • The step uses the GitHub token from the auth step to authenticate with the GitHub API
  • Temporary files are cleaned up after the upload to avoid leaving artifacts in the workflow environment

https://claude.ai/code/session_011NHxCTVZ4h6NKu9J1mKep7

claude added 3 commits March 5, 2026 20:54
Upload op-exec as platform-named release assets (linux-amd64, linux-arm64,
darwin-amd64, darwin-arm64) so that mise can install it via the ubi backend
with `mise install ubi:nsheaps/op-exec`.

https://claude.ai/code/session_011NHxCTVZ4h6NKu9J1mKep7
Replace `A && B || C` pattern with proper if-then-else to avoid
the case where C runs when B fails (even if A is true).

https://claude.ai/code/session_011NHxCTVZ4h6NKu9J1mKep7
The check workflow assumed shellcheck and shfmt were pre-installed on
ubuntu-latest. Add them as mise-managed tools and add a mise setup step
so they are reliably available.

https://claude.ai/code/session_011NHxCTVZ4h6NKu9J1mKep7
@nsheaps nsheaps merged commit 334595d into main Mar 5, 2026
2 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