Include the full build in the ol package

This commit is contained in:
Tim Schaub
2022-08-28 13:02:23 -05:00
parent 96ffd4113f
commit 219fb093c1
5 changed files with 35 additions and 10 deletions
+5 -5
View File
@@ -71,9 +71,9 @@ echo "Building API docs for ${version}"
npm run apidoc
mv build/apidoc ${build}/en/${version}/
echo "Building the legacy build for ${version}"
npm run build-legacy
mv build/legacy ${build}/en/${version}/
echo "Building the package ${version}"
npm run build-package
mv build/ol ${build}/en/${version}/
if [[ "${latest}" == "${version}" ]] ; then
echo "Copying to en/latest"
@@ -84,7 +84,7 @@ if [[ "${latest}" == "${version}" ]] ; then
zip -r ${OLDPWD}/build/${version}-site.zip . -x "en/${version}/*"
popd
pushd ${build}/en/${version}/legacy
zip -r ${OLDPWD}/build/${version}-legacy.zip .
pushd ${build}/en/${version}/ol
zip -r ${OLDPWD}/build/${version}-package.zip .
popd
fi