diff --git a/src/main/groovy/org/ajoberstar/gradle/defaults/DefaultsPlugin.groovy b/src/main/groovy/org/ajoberstar/gradle/defaults/DefaultsPlugin.groovy index 3aad0c0..9f9dd35 100644 --- a/src/main/groovy/org/ajoberstar/gradle/defaults/DefaultsPlugin.groovy +++ b/src/main/groovy/org/ajoberstar/gradle/defaults/DefaultsPlugin.groovy @@ -86,13 +86,14 @@ class DefaultsPlugin implements Plugin { } } - // push tags before tag is pushed + // publish docs before tag is pushed rootProject.tasks.reckonTagPush.dependsOn 'gitPublishPush' rootProject.allprojects { prj -> prj.tasks.matching { it.name == 'check' }.all { task -> - // make sure tests pass before creating tag + // make sure tests pass before creating tag or pushing docs rootProject.tasks.reckonTagCreate.dependsOn task + rootProject.tasks.gitPublishPush.dependsOn task } } }