Skip to content

Commit

Permalink
Configure gh-pages upload
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Aug 19, 2014
1 parent 6c51d88 commit d05cca5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions gradle/guide.gradle
@@ -1,4 +1,5 @@
apply plugin: 'org.asciidoctor.gradle.asciidoctor'
apply plugin: 'github-pages'

javadoc {
excludes = ['**/*.html', 'META-INF/**']
Expand Down Expand Up @@ -58,3 +59,20 @@ task guideZip(type: Zip, dependsOn: guide) {
baseName = "${project.name}-guide"
from "$buildDir/guide"
}

if (!project.hasProperty('githubUsername')) ext.githubUsername = ''
if (!project.hasProperty('githubPassword')) ext.githubPassword = ''

githubPages {
repoUri = project.project_url
pages {
from guide.outputs.files
}

credentials {
username = githubUsername
password = githubPassword
}
}

publishGhPages.dependsOn(guide)

0 comments on commit d05cca5

Please sign in to comment.