Skip to content

Commit d1b2ac8

Browse files
fix release workflow: separate create and upload steps
1 parent 9c2f96e commit d1b2ac8

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
uses: actions/download-artifact@v4
102102
with:
103103
path: artifacts
104-
104+
105105
- name: Create release
106106
env:
107107
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -111,10 +111,9 @@ jobs:
111111
echo "Release v$VERSION already exists — skipping"
112112
exit 0
113113
fi
114+
gh release create "v$VERSION" --title "v$VERSION" --generate-notes
114115
shopt -s nullglob
115-
ASSETS=(artifacts/*/*)
116-
if [ ${#ASSETS[@]} -eq 0 ]; then
117-
gh release create "v$VERSION" --title "v$VERSION" --generate-notes
118-
else
119-
gh release create "v$VERSION" --title "v$VERSION" --generate-notes "${ASSETS[@]}"
120-
fi
116+
for f in artifacts/*/*; do
117+
echo "Uploading $f"
118+
gh release upload "v$VERSION" "$f" --clobber
119+
done

0 commit comments

Comments
 (0)