Need to build examples before deploying

This commit is contained in:
Franck Royer 2022-05-12 15:17:53 +10:00
parent 9a65f9348e
commit df367d265f
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

View File

@ -58,6 +58,7 @@ def buildExample(example=STAGE_NAME) {
def dest = "${WORKSPACE}/build/docs/examples/${example}" def dest = "${WORKSPACE}/build/docs/examples/${example}"
dir("examples/${example}") { dir("examples/${example}") {
sh 'npm install' sh 'npm install'
sh 'npm run build'
sh "mkdir -p ${dest}" sh "mkdir -p ${dest}"
sh "cp -r build/. ${dest}" sh "cp -r build/. ${dest}"
} }