2022-11-22 11:41:12 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Naive substitution to napi artifacts for the cli binary.
|
2022-12-12 06:50:09 +03:00
|
|
|
for filename in artifacts_cli/*
|
2022-11-22 11:41:12 +03:00
|
|
|
do
|
2022-11-27 07:39:42 +03:00
|
|
|
echo "Trying to upload $filename"
|
|
|
|
|
2022-11-22 11:41:12 +03:00
|
|
|
BINDING_NAME=${filename#*.}
|
|
|
|
BINDING_ABI=${BINDING_NAME%%.*}
|
|
|
|
CLI_BINARY_PATH=${filename%%.*}
|
|
|
|
|
|
|
|
if [ -f "$CLI_BINARY_PATH" ]; then
|
|
|
|
chmod +x $CLI_BINARY_PATH
|
2022-11-27 07:39:42 +03:00
|
|
|
gh release upload $RELEASE_VERSION $CLI_BINARY_PATH
|
2022-11-22 11:41:12 +03:00
|
|
|
elif [ -f "$CLI_BINARY_PATH.exe" ]; then
|
2022-11-27 07:39:42 +03:00
|
|
|
gh release upload $RELEASE_VERSION $CLI_BINARY_PATH.exe
|
2022-11-22 11:41:12 +03:00
|
|
|
fi
|
|
|
|
done
|