We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b23246 commit f38af94Copy full SHA for f38af94
1 file changed
.github/workflows/release.yml
@@ -153,9 +153,13 @@ jobs:
153
tar czf "${PKG}.tar.gz" "$PKG"
154
fi
155
156
- # Generate SHA256 checksum (sha256sum is available on all runners)
+ # Generate SHA256 checksum
157
ASSET=$(ls "${PKG}.tar.gz" "${PKG}.zip" 2>/dev/null | head -1)
158
- sha256sum "$ASSET" > "${ASSET}.sha256"
+ if command -v sha256sum >/dev/null 2>&1; then
159
+ sha256sum "$ASSET" > "${ASSET}.sha256"
160
+ else
161
+ shasum -a 256 "$ASSET" > "${ASSET}.sha256"
162
+ fi
163
echo "=== Packaged ==="
164
ls -la
165
0 commit comments