Skip to content

Commit

Permalink
chore(cli): skip directories in CLI release
Browse files Browse the repository at this point in the history
  • Loading branch information
theSoenke committed Dec 19, 2024
1 parent 96802d0 commit 07c39c7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions clients/cli/build/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ fi
# Upload artifacts
DIST_DIR="./dist"
for file in "$DIST_DIR"/*; do
echo "Uploading ${file}"
asset="https://uploads.github.com/repos/phrase/phrase-cli/releases/${release_id}/assets?name=$(basename "$file")"
curl -sS --data-binary @"$file" -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/octet-stream" $asset > /dev/null
echo Hash: $(sha256sum $file)
if [ -f "$file" ]; then
echo "Uploading ${file}"
asset="https://uploads.github.com/repos/phrase/phrase-cli/releases/${release_id}/assets?name=$(basename "$file")"
curl -sS --data-binary @"$file" -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/octet-stream" $asset > /dev/null
echo Hash: $(sha256sum $file)
fi
done

echo "Publishing release"
Expand Down

0 comments on commit 07c39c7

Please sign in to comment.