Skip to content

Commit 56b17aa

Browse files
committed
fix: determine checksum asset name by OS, not by ls
1 parent f38af94 commit 56b17aa

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ jobs:
154154
fi
155155
156156
# Generate SHA256 checksum
157-
ASSET=$(ls "${PKG}.tar.gz" "${PKG}.zip" 2>/dev/null | head -1)
157+
if [ "${{ runner.os }}" = "Windows" ]; then
158+
ASSET="${PKG}.zip"
159+
else
160+
ASSET="${PKG}.tar.gz"
161+
fi
158162
if command -v sha256sum >/dev/null 2>&1; then
159163
sha256sum "$ASSET" > "${ASSET}.sha256"
160164
else

0 commit comments

Comments
 (0)