diff --git a/.travis.yml b/.travis.yml index cee1a252a0..e00feaafab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,7 +30,7 @@ jobs: script: "./scripts/github-release.sh" - stage: javadoc release if: branch =~ /release/ - script: "./gradlew core:gitPublishPush" + script: "./gradlew -Dorg.ajoberstar.grgit.auth.username=$GITHUB_PERSONAL_ACCESS_TOKEN core:gitPublishPush" after_success: - bash <(curl -s https://codecov.io/bash) before_install: diff --git a/core/build.gradle b/core/build.gradle index de48d577a6..9ab2c7dd27 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -49,10 +49,7 @@ gitPublish { if (ghToken) { repoUri = "https://github.com/${docsPath}.git" - credentials { - username = ghToken - password = '' - } + } else { repoUri = "git@github.com:${docsPath}.git" }