1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-22 13:57:46 +03:00
Mindustry/upload-build.sh

26 lines
730 B
Bash
Raw Normal View History

2017-12-21 08:08:21 +03:00
#!/usr/bin/env bash
2017-12-21 21:55:02 +03:00
# cd $HOME
2017-12-21 08:08:21 +03: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_COMMIT"-desktop-bleeding-edge.jar"
2017-12-21 21:55:02 +03:00
cp ../desktop/build/libs/desktop-release.jar $DESKFILE
2017-12-21 08:08:21 +03:00
FILE1=$TRAVIS_BUILD_NUMBER-Bleeding-Edge-Build-$TRAVIS_COMMIT.md
if [ ! -e $FILE1 ]; then
touch $FILE1
fi
echo "This is the latest build of #"$TRAVIS_COMMIT" \nDesktop download: ["$DESKFILE"]("$DESKFILE")" >> $FILE1
git add $FILE1
git add desktop-bleeding-edge.jar
git commit -m "Added a new bleeding edge build"
2017-12-21 21:55:02 +03:00
git push https://$GHUSERNAME:$GHPASSWORD@github.com/Anuken/Mindustry.wiki.git --all