Update .forgejo/workflows/build.yaml
Some checks failed
/ deploy (push) Failing after 8s

This commit is contained in:
aart1256 2025-08-28 18:09:23 -04:00
parent 8ced2b2a60
commit 843d18d306

View file

@ -18,8 +18,7 @@ jobs:
run: npm run build run: npm run build
- name: Deploy to web server - name: Deploy to web server
run: | run: |
find /var/www/otomata -maxdepth 1 -type f -delete find /var/www/otomata/* -path '/var/www/otomata/demos' -prune -o -exec rm -rf {} +
find /var/www/otomata -maxdepth 1 -type d ! -name demos ! -name otomata -exec rm -rf {} +
cp -r _site/* /var/www/otomata/ cp -r _site/* /var/www/otomata/
chown -R www-data:www-data /var/www/otomata chown -R www-data:www-data /var/www/otomata
chmod -R 755 /var/www/otomata chmod -R 755 /var/www/otomata