forked from lucee/lucee-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-all.cfm
23 lines (19 loc) · 842 Bytes
/
build-all.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<cfprocessingdirective suppressWhitespace="true" />
<cfsetting requesttimeout="1200" />
<cfscript>
var docsZipFile = "builds/html/lucee-docs.zip";
if ( fileExists( docsZipFile ) )
fileDelete( docsZipFile );
if (directoryExists( "builds/artifacts") ){
directoryDelete(" builds/artifacts", true);
}
include template="import.cfm";
include template="build.cfm";
systemOutput("Generating lucee-docs.zip", true);
zip action="zip" source="builds/html" file="#docsZipFile#" recurse="true";
systemOutput( "lucee-docs.zip generated #numberFormat(int(fileInfo(docsZipFile).size/1024))# Kb", true );
systemOutput( "Copying artifacts for upload to s3", true );
DirectoryCopy( "builds/html", "builds/artifacts", true);
systemOutput( "", true );
systemOutput( "Docs build process complete, ready to upload to S3", true );
</cfscript>