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
1 changed files with 1 additions and 0 deletions

View File

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