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-01-04 02:11:44 +07:00
|
|
|
DESKFILE=$TRAVIS_BUILD_NUMBER"-desktop-bleeding-edge.jar"
|
2017-12-22 01:55:02 +07:00
|
|
|
cp ../desktop/build/libs/desktop-release.jar $DESKFILE
|
2017-12-21 12:08:21 +07:00
|
|
|
|
2017-12-22 10:10:54 +07:00
|
|
|
FILE1="Bleeding-Edge-Build-$TRAVIS_BUILD_NUMBER.md"
|
2017-12-21 12:08:21 +07:00
|
|
|
|
|
|
|
if [ ! -e $FILE1 ]; then
|
|
|
|
touch $FILE1
|
|
|
|
fi
|
|
|
|
|
2017-12-22 10:04:56 +07:00
|
|
|
NEWLINE=$'\n'
|
2017-12-22 10:10:54 +07:00
|
|
|
echo "### Commit #"$TRAVIS_COMMIT".${NEWLINE}Desktop JAR download: [Link]("$DESKFILE")" >> $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"
|
2017-12-22 01:55:02 +07:00
|
|
|
git push https://$GHUSERNAME:$GHPASSWORD@github.com/Anuken/Mindustry.wiki.git --all
|