Testing doc script [2]

This commit is contained in:
Anuken
2020-06-14 18:51:38 -04:00
parent 5f79040faa
commit 0968f0be59
2 changed files with 3 additions and 3 deletions

View File

@@ -20,9 +20,9 @@ script:
- "./gradlew test"
- "./gradlew desktop:dist -Pbuildversion=${TRAVIS_TAG:1}"
- "./gradlew server:dist -Pbuildversion=${TRAVIS_TAG:1}"
- "./gradlew javadoc"
- "./gradlew core:javadoc"
- cd ../
- git clone --depth=1 --branch=master https://github.com/MindustryGame/docs.git
- git clone --depth=1 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