2021-01-21 14:15:05 +03:30
|
|
|
#!/bin/bash
|
|
|
|
|
2021-02-05 00:11:20 +03:30
|
|
|
git lfs install
|
2021-02-05 00:20:25 +03:30
|
|
|
#git lfs track "*.zip"
|
2021-02-05 00:11:20 +03:30
|
|
|
|
2021-01-22 01:55:41 +03:30
|
|
|
cp ../master/repo/* .
|
2021-02-04 23:47:16 +03:30
|
|
|
new_jar_build=$(ls *.jar| tail -1)
|
|
|
|
echo "last jar build file name: $new_jar_build"
|
2021-01-21 16:20:22 +03:30
|
|
|
|
2021-02-04 23:47:16 +03:30
|
|
|
new_win32_build=$(ls *.zip| tail -1)
|
|
|
|
echo "last win32 build file name: $new_win32_build"
|
|
|
|
|
|
|
|
cp -f $new_jar_build Tachidesk-latest.jar
|
|
|
|
cp -f $new_win32_build Tachidesk-latest-win32.zip
|
2021-01-22 01:55:41 +03:30
|
|
|
|
2021-01-21 22:39:22 +03:30
|
|
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
|
|
git config --global user.name "github-actions[bot]"
|
2021-01-21 14:15:05 +03:30
|
|
|
git status
|
|
|
|
if [ -n "$(git status --porcelain)" ]; then
|
|
|
|
git add .
|
2021-01-21 16:27:27 +03:30
|
|
|
git commit -m "Update repo"
|
2021-01-21 14:15:05 +03:30
|
|
|
git push
|
|
|
|
else
|
|
|
|
echo "No changes to commit"
|
|
|
|
fi
|