Skip to content

Commit 9819109

Browse files
author
John Engelman
committed
Fix up doc publishing as part of release.
1 parent f8c6508 commit 9819109

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

gradle/ghPages.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
apply plugin: 'org.ajoberstar.git-publish'
22

3+
if (project.hasProperty('githubToken')) {
4+
System.setProperty('org.ajoberstar.grgit.auth.username', project.githubToken)
5+
}
6+
37
gitPublish {
48
repoUri = 'https://github.com/johnrengelman/shadow.git'
59

10+
branch = 'gh-pages'
11+
612
contents {
713
from 'build/asciidoc/html5'
814
into('api') {
@@ -12,4 +18,4 @@ gitPublish {
1218
}
1319

1420
tasks.gitPublishPush.dependsOn asciidoctor
15-
tasks.gitPublishPush.dependsOn groovydoc
21+
tasks.gitPublishPush.dependsOn groovydoc

gradle/publish.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,5 @@ publishPlugins { task ->
150150
}
151151

152152
task release() {
153-
dependsOn 'assemble', 'bintrayUpload', 'publishPlugins', 'publishGhPages'
153+
dependsOn 'assemble', 'bintrayUpload', 'publishPlugins', 'gitPublishPush'
154154
}

0 commit comments

Comments
 (0)