Skip to content

Commit 6544b14

Browse files
authored
Update build_and_release.yml
1 parent 8d3bbe5 commit 6544b14

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build_and_release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ jobs:
7373
cp -r $src_dir/*.so "./dist/$dist_name"
7474
fi
7575
76-
# Generate .tar.gz files
77-
tar -czf ./dist/$dist_name.tar.gz -C ./dist/$dist_name/
76+
# Generate .tar.gz files
77+
if [ -n "$(ls -A "./dist/$dist_name/" 2>/dev/null)" ]; then
78+
tar -czf ./dist/$dist_name.tar.gz -C ./dist/$dist_name/
79+
fi
7880
done
7981
echo "Files in dist: "
8082
pwd

0 commit comments

Comments
 (0)