now we can deploy repo too

This commit is contained in:
Aria Moradi
2021-04-10 09:54:03 +04:30
parent 9958e0eb34
commit 3fcc269df3
4 changed files with 85 additions and 27 deletions

View File

@@ -1,17 +1,12 @@
#!/bin/bash
git lfs install
#git lfs track "*.zip"
cp master/server/build/Tachidesk-*.jar repo
cd repo
cp ../master/repo/* .
new_jar_build=$(ls *.jar| tail -1)
echo "last jar build file name: $new_jar_build"
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
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"

View File

@@ -1,20 +0,0 @@
#!/bin/bash
# Get last commit message
#last_commit_log=$(git log -1 --pretty=format:"%s")
#echo "last commit log: $last_commit_log"
#
#filter_count=$(echo "$last_commit_log" | grep -e '\[RELEASE CI\]' -e '\[CI RELEASE\]' | wc -c)
#echo "count is: $filter_count"
mkdir -p repo/
cp server/build/Tachidesk-*.jar repo/
cp server/build/Tachidesk-*.zip repo/
ls repo
pwd
#if [ "$filter_count" -gt 0 ]; then
# cp server/build/Tachidesk-*.jar repo/
# cp server/build/Tachidesk-*.zip repo/
#fi