mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2025-01-27 15:55:30 +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)
|
new_build=$(ls | tail -1)
|
||||||
echo "New build file name: $new_build"
|
echo "New build file name: $new_build"
|
||||||
|
|
||||||
diff $new_build server-latest.jar > /dev/null
|
# every build generates different jar even if same code, so comment this out.
|
||||||
if [ $? -eq 1 ]; then
|
#diff $new_build server-latest.jar > /dev/null
|
||||||
echo "This is different to latest, replace latest."
|
#if [ $? -eq 1 ]; then
|
||||||
cp -f $new_build server-latest.jar
|
# echo "This is different to latest, replace latest."
|
||||||
else
|
# cp -f $new_build server-latest.jar
|
||||||
echo "This is the same as latest, throw it away."
|
#else
|
||||||
rm $new_build
|
# echo "This is the same as latest, throw it away."
|
||||||
fi
|
# rm $new_build
|
||||||
|
#fi
|
||||||
|
|
||||||
|
|
||||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
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/
|
mkdir -p repo/
|
||||||
|
|
||||||
revision=$(git rev-list master --count)
|
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"
|
cp server/build/server-1.0-all.jar "repo/server-r$revision.jar"
|
Loading…
x
Reference in New Issue
Block a user