Mirror of https://github.com/typegoose/typegoose
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
412 B
19 lines
412 B
#!/bin/bash
|
|
|
|
# DO NOT EXECUTE THIS FILE IN YOUR WORKING DIRECTORY
|
|
# THIS IS MEANT FOR CI/CD ONLY
|
|
|
|
# Exit Script when command exits with non-0
|
|
set -e
|
|
|
|
shopt -s dotglob nullglob
|
|
|
|
cd website
|
|
yarn
|
|
yarn build
|
|
cd ..
|
|
find . -not -regex "^\.\/website.*\|^.\/\.git.*" -delete # delete everything that is not starting with ".git" or "website/build"
|
|
mv website/build/* ./
|
|
|
|
# redundant, just to have it clean
|
|
rm -rf website
|
|
|