mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2025-01-26 23:35:32 +01:00
improve builds
This commit is contained in:
parent
7e4b495398
commit
39ed134f96
17
.github/scripts/commit-repo.sh
vendored
17
.github/scripts/commit-repo.sh
vendored
@ -4,14 +4,15 @@ cp ../master/repo/server-r* .
|
||||
new_build=$(ls | tail -1)
|
||||
echo "New build file name: $new_build"
|
||||
|
||||
diff $new_build server-latest.jar > /dev/null
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "This is different to latest, replace latest."
|
||||
cp -f $new_build server-latest.jar
|
||||
else
|
||||
echo "This is the same as latest, throw it away."
|
||||
rm $new_build
|
||||
fi
|
||||
# every build generates different jar even if same code, so comment this out.
|
||||
#diff $new_build server-latest.jar > /dev/null
|
||||
#if [ $? -eq 1 ]; then
|
||||
# echo "This is different to latest, replace latest."
|
||||
# cp -f $new_build server-latest.jar
|
||||
#else
|
||||
# echo "This is the same as latest, throw it away."
|
||||
# rm $new_build
|
||||
#fi
|
||||
|
||||
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
2
.github/scripts/create-repo.sh
vendored
2
.github/scripts/create-repo.sh
vendored
@ -4,5 +4,7 @@ set -e
|
||||
mkdir -p repo/
|
||||
|
||||
revision=$(git rev-list master --count)
|
||||
# add zero padding
|
||||
revision=$(printf %04d $revision)
|
||||
|
||||
cp server/build/server-1.0-all.jar "repo/server-r$revision.jar"
|
Loading…
x
Reference in New Issue
Block a user