Skip to content

Commit

Permalink
create a zip file of the docs, so it can easily be included in the SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
fs111 authored and cwensel committed Sep 5, 2013
1 parent 9e4e91b commit e6e6da6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion impatient-docs/build.gradle
Expand Up @@ -65,10 +65,20 @@ asciidoctor {
]
}

task docDist( type: Copy, dependsOn: asciidoctor ) {
task zipDocs( type: Zip, dependsOn: asciidoctor ){
baseName = "impatient"
from (asciidoctor.outputDir){
include '*.*'
}
into "impatient-docs"
}


task docDist( type: Copy, dependsOn: [asciidoctor, zipDocs] ) {
description = "publish documentation"

from asciidoctor.outputDir
from zipDocs.destinationDir
into "${rootProject.s3UploadDocs.source}/" // intentionally publish to root

rootProject.s3UploadDocs.dependsOn docDist
Expand Down

0 comments on commit e6e6da6

Please sign in to comment.