mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 09:38:16 +03:00
20 lines
503 B
Bash
Executable File
20 lines
503 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd ./packages/core/
|
|
|
|
# Naive substitution to napi artifacts for the cli binary.
|
|
for filename in artifacts_cli/*
|
|
do
|
|
echo "Trying to upload $filename"
|
|
|
|
BINDING_NAME=${filename#*.}
|
|
BINDING_ABI=${BINDING_NAME%%.*}
|
|
CLI_BINARY_PATH=${filename%%.*}
|
|
|
|
if [ -f "$CLI_BINARY_PATH" ]; then
|
|
chmod +x $CLI_BINARY_PATH
|
|
gh release upload $RELEASE_VERSION $CLI_BINARY_PATH
|
|
elif [ -f "$CLI_BINARY_PATH.exe" ]; then
|
|
gh release upload $RELEASE_VERSION $CLI_BINARY_PATH.exe
|
|
fi
|
|
done |