Add a job to create a release

This commit is contained in:
Tim Schaub
2022-08-18 15:09:17 -06:00
parent fae9e9097d
commit 293f128558
4 changed files with 149 additions and 3 deletions

View File

@@ -78,4 +78,13 @@ mv build/legacy ${build}/en/${version}/
if [[ "${latest}" == "${version}" ]] ; then
echo "Copying to en/latest"
cp -r ${build}/en/${version} ${build}/en/latest
echo "Building release artifacts"
pushd ${build}
zip -r ${OLDPWD}/build/${version}-site.zip . -x "en/${version}/*"
popd
pushd ${build}/en/${version}/legacy
zip -r ${OLDPWD}/build/${version}-legacy.zip .
popd
fi