From 61fcbff791fa329336dc3f1275c81c23a983feee Mon Sep 17 00:00:00 2001 From: Trumeet Date: Sun, 11 Sep 2022 18:47:31 -0700 Subject: Fix CI --- post-receive | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/post-receive b/post-receive index afbe28e..bbdfa29 100755 --- a/post-receive +++ b/post-receive @@ -9,14 +9,26 @@ fi echo "Deploying ..." git clone --recurse-submodules -q $GITDIR $BUILDDIR cd $BUILDDIR +mkdir dist/ +mkdir dist/projs + cd projs/ yarn install yarn build -sed -i '' "s/\/assets/assets/g" dist/index.html -mv dist/ ../ +sed "s/\/assets/assets/g" dist/index.html cd .. -rm -rf projs -mv dist projs +mv projs/dist dist/projs + +cd neo/ +npm install . +npm run build +cd .. +mv neo/dist/* dist/ + +mv acron dist/ + +mv minecraft-pacman dist/ + cd $GITDIR -rsync -r --delete $BUILDDIR/ /usr/local/www/index/ +rsync -r --delete $BUILDDIR/dist /usr/local/www/index/ rm -rf $BUILDDIR -- cgit v1.2.3