Skip to content

Commit f09d31e

Browse files
dqnamoclaude
andcommitted
Fix release job artifact handling
- Add permissions: contents: write for release creation - Remove merge-multiple option that caused nested artifact issues - Add prepare step to flatten binaries from nested artifact dirs - Add fail_on_unmatched_files to catch missing binaries early Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5c91a11 commit f09d31e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,27 @@ jobs:
8080
needs: build
8181
runs-on: ubuntu-latest
8282
if: startsWith(github.ref, 'refs/tags/')
83+
permissions:
84+
contents: write # Required for creating releases
8385

8486
steps:
8587
- name: Download all artifacts
8688
uses: actions/download-artifact@v4
8789
with:
88-
path: binaries
89-
merge-multiple: true
90+
path: artifacts
9091

91-
- name: List binaries
92-
run: ls -la binaries/
92+
- name: Prepare binaries
93+
run: |
94+
mkdir -p binaries
95+
find artifacts -type f -name "hyperaide-sync-*" -exec cp {} binaries/ \;
96+
echo "=== Binaries to release ==="
97+
ls -la binaries/
9398
9499
- name: Create Release
95100
uses: softprops/action-gh-release@v1
96101
with:
97102
files: binaries/*
98103
generate_release_notes: true
104+
fail_on_unmatched_files: true
99105
env:
100106
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)