Skip to content

Refactor release workflow to use artifacts for multi-platform builds#10

Merged
T3pp31 merged 1 commit into
mainfrom
claude/fix-github-actions-PqUmZ
Feb 22, 2026
Merged

Refactor release workflow to use artifacts for multi-platform builds#10
T3pp31 merged 1 commit into
mainfrom
claude/fix-github-actions-PqUmZ

Conversation

@T3pp31
Copy link
Copy Markdown
Owner

@T3pp31 T3pp31 commented Feb 22, 2026

Summary

Refactored the GitHub Actions release workflow to decouple binary building from release creation. The workflow now uploads built binaries as artifacts and uses a separate job to collect and release them, improving workflow efficiency and maintainability.

Key Changes

  • Build job: Added artifact upload step to store compiled binaries for each target platform
  • New release job: Created a separate release job that depends on build to:
    • Download all artifacts from the build matrix
    • Merge multiple artifacts into a single directory
    • Upload all binaries to GitHub Releases in one step
  • Removed matrix dependency: The release step no longer depends on the build matrix, simplifying the release logic

Implementation Details

  • Uses actions/upload-artifact@v4 to store binaries with target platform as the artifact name
  • Uses actions/download-artifact@v4 with merge-multiple: true to consolidate all platform binaries
  • The release job uses needs: [build] to ensure all build jobs complete before attempting release
  • Simplified the release file pattern from matrix-dependent paths to a simple artifacts/* glob

https://claude.ai/code/session_01VLr2RV5gpUYAXjvxWeiCBH

8つのビルドマトリクスジョブが同時にsoftprops/action-gh-releaseを
呼び出すことで"Too many retries"エラーが発生していた問題を修正。
ビルドジョブではartifactとしてアップロードし、専用のreleaseジョブで
一括してGitHub Releaseに配置するように変更。

https://claude.ai/code/session_01VLr2RV5gpUYAXjvxWeiCBH
@T3pp31 T3pp31 merged commit 93f3651 into main Feb 22, 2026
1 check 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