chore: transformed deploy into simple build script

This commit is contained in:
Valentin Doreau 2024-10-14 21:58:20 +02:00
parent 116be84100
commit 92387c6ec0
Signed by: vdoreau
GPG Key ID: F3E456CF9A14098B
1 changed files with 0 additions and 8 deletions

View File

@ -2,9 +2,6 @@
set -e set -e
DESTINATION=root@static.recycled.cloud:/var/www/
WEBSITE=recycled.cloud
for locale in en fr; do for locale in en fr; do
(cd $locale/; make clean; make all) (cd $locale/; make clean; make all)
done done
@ -17,8 +14,3 @@ for locale in en fr; do
cp -r assets $workdir/$locale cp -r assets $workdir/$locale
done done
cp en/index.html $workdir cp en/index.html $workdir
sftp -b - "$DESTINATION" <<- EOF
-rm ${WEBSITE:?}/*
put -R ${workdir:?}/* $WEBSITE
EOF