2017-12-21 12:08:21 +07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2017-12-22 01:55:02 +07:00
|
|
|
# cd $HOME
|
2017-12-21 12:08:21 +07:00
|
|
|
git config --global user.email $GHEMAIL
|
|
|
|
git config --global user.name $GHUSERNAME
|
|
|
|
|
|
|
|
# add, commit and push files
|
|
|
|
git clone https://github.com/Anuken/Mindustry.wiki.git
|
|
|
|
cd Mindustry.wiki
|
|
|
|
|
2018-03-10 03:01:16 +07:00
|
|
|
DESKFILE="mindustry-desktop-bleeding-edge.jar"
|
|
|
|
|
|
|
|
if [ -e $DESKFILE ]; then
|
|
|
|
rm $DESKFILE
|
|
|
|
fi
|
|
|
|
|
2017-12-22 01:55:02 +07:00
|
|
|
cp ../desktop/build/libs/desktop-release.jar $DESKFILE
|
2017-12-21 12:08:21 +07:00
|
|
|
|
2018-03-10 05:17:01 +07:00
|
|
|
FILE1="Home.md"
|
2017-12-21 12:08:21 +07:00
|
|
|
|
2018-03-10 03:01:16 +07:00
|
|
|
if [ -e $FILE1 ]; then
|
|
|
|
rm $FILE1
|
2017-12-21 12:08:21 +07:00
|
|
|
fi
|
|
|
|
|
2018-03-10 03:01:16 +07:00
|
|
|
touch $FILE1
|
|
|
|
|
2018-03-10 05:51:01 +07:00
|
|
|
echo "#### Latest Bleeding Edge Build: "$TRAVIS_BUILD_NUMBER"" >> $FILE1
|
|
|
|
echo "###### Commit: "$TRAVIS_COMMIT"" >> $FILE1
|
2018-02-21 07:40:19 +07:00
|
|
|
echo >> $FILE1
|
2018-03-10 07:32:33 +07:00
|
|
|
echo "[Desktop JAR download.]("$DESKFILE") " >> $FILE1
|
2018-03-10 05:51:01 +07:00
|
|
|
echo "*Requires Java to run, as usual.*" >> $FILE1
|
2017-12-21 12:08:21 +07:00
|
|
|
|
|
|
|
git add $FILE1
|
2017-12-22 03:25:31 +07:00
|
|
|
git add $DESKFILE
|
2017-12-21 12:08:21 +07:00
|
|
|
git commit -m "Added a new bleeding edge build"
|
2018-01-04 02:50:38 +07:00
|
|
|
|
2017-12-22 01:55:02 +07:00
|
|
|
git push https://$GHUSERNAME:$GHPASSWORD@github.com/Anuken/Mindustry.wiki.git --all
|