Testing doc script

This commit is contained in:
Anuken
2020-06-14 18:41:42 -04:00
parent 126b54b981
commit 5f79040faa
37 changed files with 59 additions and 30 deletions

View File

@@ -20,6 +20,12 @@ script:
- "./gradlew test"
- "./gradlew desktop:dist -Pbuildversion=${TRAVIS_TAG:1}"
- "./gradlew server:dist -Pbuildversion=${TRAVIS_TAG:1}"
- "./gradlew javadoc"
- cd ../
- git clone --depth=1 --branch=master https://github.com/MindustryGame/docs.git
- cp -a Mindustry/core/build/docs/javadoc/. docs/
- cd docs
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git add .; git commit -m "Update ${TRAVIS_BUILD_NUMBER}"; git push https://Anuken:${GH_PUSH_TOKEN}@github.com/MindustryGame/docs; fi
deploy:
- provider: releases
skip_cleanup: true