#!/usr/bin/env bash # cd $HOME 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 DESKFILE=$TRAVIS_BUILD_NUMBER"-desktop-bleeding-edge.jar" cp ../desktop/build/libs/desktop-release.jar $DESKFILE FILE1="Bleeding-Edge-Build-"$TRAVIS_BUILD_NUMBER".md" if [ ! -e $FILE1 ]; then touch $FILE1 fi echo "### Commit #"$TRAVIS_COMMIT"." >> $FILE1 echo >> $FILE1 echo "Desktop JAR download: [Link]("$DESKFILE")" >> $FILE1 git add $FILE1 git add $DESKFILE git commit -m "Added a new bleeding edge build" # now remove old build bash ../cleanup_builds.sh git push https://$GHUSERNAME:$GHPASSWORD@github.com/Anuken/Mindustry.wiki.git --all