kami-blue/scripts/releaseNightly.sh

19 lines
313 B
Bash
Raw Normal View History

2020-04-28 01:27:44 +00:00
#!/bin/bash
cd ~/kamiblue/
export COMMIT_LAST="$(git log --format=%h -1)"
git fetch kamiblue
git reset --hard kamiblue/master
export COMMIT_TRIM="$(git log --format=%h -1)"
if [ "$COMMIT_LAST" == "$COMMIT_TRIM" ]; then
exit 0
fi
rm -rf build/libs
./scripts/preHook.sh
./gradlew build
./scripts/hook.sh