clean up bulid file name

This commit is contained in:
Aria Moradi
2021-01-22 01:37:24 +03:30
parent 1a23804e51
commit eac7436b18
4 changed files with 28 additions and 17 deletions

View File

@@ -3,8 +3,12 @@ set -e
mkdir -p repo/
revision=$(git rev-list master --count)
# add zero padding
revision=$(printf %04d $revision)
# Get last commit message
last_commit_log=$(git log -1 --pretty=format:"%s")
echo "last commit log: $last_commit_log"
cp server/build/server-1.0-all.jar "repo/server-r$revision.jar"
filter_count=$(echo "$last_commit_log" | grep -c "[RELEASE CI]" )
if [ "$filter_count" -gt 0 ]; then
cp server/build/Tachidesk-*.jar repo/
fi