Skip to content

Commit 789e4a5

Browse files
authored
chore(cli): skip directories in CLI release (#744)
1 parent 96802d0 commit 789e4a5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

clients/cli/build/release.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ fi
5656
# Upload artifacts
5757
DIST_DIR="./dist"
5858
for file in "$DIST_DIR"/*; do
59-
echo "Uploading ${file}"
60-
asset="https://uploads.github.com/repos/phrase/phrase-cli/releases/${release_id}/assets?name=$(basename "$file")"
61-
curl -sS --data-binary @"$file" -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/octet-stream" $asset > /dev/null
62-
echo Hash: $(sha256sum $file)
59+
if [ -f "$file" ]; then
60+
echo "Uploading ${file}"
61+
asset="https://uploads.github.com/repos/phrase/phrase-cli/releases/${release_id}/assets?name=$(basename "$file")"
62+
curl -sS --data-binary @"$file" -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/octet-stream" $asset > /dev/null
63+
echo Hash: $(sha256sum $file)
64+
fi
6365
done
6466

6567
echo "Publishing release"

0 commit comments

Comments
 (0)