mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2026-01-18 17:52:36 +01:00
now we can deploy repo too
This commit is contained in:
9
.github/scripts/commit-repo.sh
vendored
9
.github/scripts/commit-repo.sh
vendored
@@ -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]"
|
||||
|
||||
20
.github/scripts/create-repo.sh
vendored
20
.github/scripts/create-repo.sh
vendored
@@ -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
|
||||
Reference in New Issue
Block a user