mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-13 09:17:28 +07:00
added script for live builds
This commit is contained in:
@ -6,7 +6,6 @@ jdk:
|
|||||||
|
|
||||||
android:
|
android:
|
||||||
components:
|
components:
|
||||||
# The SDK version used to compile your project
|
|
||||||
- android-26
|
- android-26
|
||||||
|
|
||||||
# Additional components
|
# Additional components
|
||||||
@ -15,4 +14,10 @@ android:
|
|||||||
- extra-android-m2repository
|
- extra-android-m2repository
|
||||||
- addon-google_apis-google-26
|
- addon-google_apis-google-26
|
||||||
|
|
||||||
script: ./gradlew desktop:dist
|
script:
|
||||||
|
- ./gradlew clean desktop:dist
|
||||||
|
- ./gradlew clean android:build
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- chmod +x upload-build.sh
|
||||||
|
- ./upload-build.sh
|
||||||
|
25
upload-build.sh
Normal file
25
upload-build.sh
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#!/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_COMMIT"-desktop-bleeding-edge.jar"
|
||||||
|
cp desktop/build/libs/desktop-release.jar $DESKFILE
|
||||||
|
|
||||||
|
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"
|
||||||
|
git push https://$GHUSERNAME:$GHPASSWORD@github.com:Anuken/Mindustry.git --all
|
Reference in New Issue
Block a user