Files
Mindustry/upload-build.sh

32 lines
771 B
Bash
Raw Normal View History

2017-12-21 00:08:21 -05:00
#!/usr/bin/env bash
2017-12-21 13:55:02 -05:00
# cd $HOME
2017-12-21 00:08:21 -05: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
DESKFILE=$TRAVIS_BUILD_NUMBER"-desktop-bleeding-edge.jar"
2017-12-21 13:55:02 -05:00
cp ../desktop/build/libs/desktop-release.jar $DESKFILE
2017-12-21 00:08:21 -05:00
2018-02-02 14:56:44 -05:00
FILE1="Bleeding-Edge-Build-"$TRAVIS_BUILD_NUMBER".md"
2017-12-21 00:08:21 -05:00
if [ ! -e $FILE1 ]; then
touch $FILE1
fi
2018-02-20 19:40:19 -05:00
echo "### Commit #"$TRAVIS_COMMIT"." >> $FILE1
echo >> $FILE1
echo "Desktop JAR download: [Link]("$DESKFILE")" >> $FILE1
2017-12-21 00:08:21 -05:00
git add $FILE1
2017-12-21 15:25:31 -05:00
git add $DESKFILE
2017-12-21 00:08:21 -05:00
git commit -m "Added a new bleeding edge build"
2018-01-03 14:50:38 -05:00
# now remove old build
2018-02-02 20:26:50 -05:00
bash ../cleanup_builds.sh
2018-01-03 14:50:38 -05:00
2017-12-21 13:55:02 -05:00
git push https://$GHUSERNAME:$GHPASSWORD@github.com/Anuken/Mindustry.wiki.git --all