diff options
Diffstat (limited to 'post-receive')
-rwxr-xr-x | post-receive | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/post-receive b/post-receive index 77f8326..f223baf 100755 --- a/post-receive +++ b/post-receive @@ -10,28 +10,10 @@ echo "Deploying ..." git clone --recurse-submodules -q $GITDIR $BUILDDIR cd $BUILDDIR mkdir dist/ -mkdir dist/projs -export NODE_OPTIONS=--openssl-legacy-provider - -cd projs/ -yarn install -yarn build -sed -i "s/\/assets/assets/g" dist/index.html -cd .. -mv projs/dist/* dist/projs - -cd neo/ -npm install . -npm run build -cd .. -mv neo/dist/* dist/ - -mv acron dist/ - -mv minecraft-pacman dist/ - -cp key.gpg dist/ +set +e +./build +set -e cd $GITDIR rsync -r --delete $BUILDDIR/dist/ /srv/http/index/ |