forked from edgexfoundry/edgex-global-pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.gradle
32 lines (26 loc) · 887 Bytes
/
publish.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
plugins {
id "org.ajoberstar.git-publish" version "3.0.0"
}
gitPublish {
// publish to this repository
repoUri = '[email protected]:edgexfoundry/edgex-global-pipelines.git'
// branch will be created if it doesn't exist
branch = 'gh-pages'
// mkdocs publishes to this directory
repoDir = file("$buildDir/docs/html")
// what to publish, this is a standard CopySpec
// copying to github pages default location docs
contents {
from('docs/html') {
into 'docs'
}
// copying md_files generated and static assets
from 'docs_src'
}
// We need index.html to redirect to the main page; If we don't preserve it will be overwritten.
preserve {
include 'docs/index.html'
}
// message used when committing changes to the gh-pages branch
commitMessage = 'Publishing to GitHub pages'
}