Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (27 sloc) 708 Bytes
plugins {
id 'org.jbake.site' version '5.0.0'
id 'org.ajoberstar.git-publish' version '2.1.1'
}
buildDir = 'output'
Properties jbakeProps = new Properties()
FileInputStream stream = new FileInputStream('src/jbake.properties');
jbakeProps.load(new InputStreamReader(stream, 'UTF-8'));
jbake {
version = '2.6.4'
srcDirName = 'src'
destDirName = ''
configuration = jbakeProps
clearCache = true
}
apply plugin: 'org.ajoberstar.git-publish'
gitPublish {
repoUri = 'https://github.com/benelog/blog.git'
branch = 'gh-pages'
repoDir = file('public')
contents {
from(file(buildDir)) {
into '.'
}
}
}
gitPublishCommit.dependsOn bake
You can’t perform that action at this time.