Skip to content

Commit ebf4763

Browse files
committed
ci: fix release artifact publishing
1 parent 91d0296 commit ebf4763

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,27 @@ jobs:
122122
id: version
123123
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
124124

125+
- name: List available artifacts
126+
run: |
127+
echo "Available artifacts in dist/:"
128+
find dist/ -type f -ls
129+
125130
- name: Create release with scanned artifacts
126131
run: |
127-
# Create the release with only the tar.gz files
132+
# Collect standard release artifacts (archives and checksums)
133+
ARTIFACTS=$(find dist/ \( -name "*.tar.gz" -o -name "checksums.txt" \) -type f | tr '\n' ' ')
134+
135+
echo "Artifacts to upload: $ARTIFACTS"
136+
137+
if [ -z "$ARTIFACTS" ]; then
138+
echo "❌ No artifacts found to upload!"
139+
exit 1
140+
fi
141+
128142
gh release create ${{ steps.version.outputs.VERSION }} \
129143
--title "Release ${{ steps.version.outputs.VERSION }}" \
130144
--generate-notes \
131-
$(find dist/ -name "*.tar.gz" | tr '\n' ' ')
145+
$ARTIFACTS
132146
env:
133147
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134148

0 commit comments

Comments
 (0)