perms fix
All checks were successful
Deploy Docs / deploy (push) Successful in 9s

This commit is contained in:
2026-05-20 15:48:15 -05:00
parent 73bfb0e68a
commit cc779ea2bd

View File

@@ -33,11 +33,11 @@ jobs:
chmod 600 ~/.ssh/deploy_key chmod 600 ~/.ssh/deploy_key
ssh-keyscan -H $SERVER_HOST >> ~/.ssh/known_hosts ssh-keyscan -H $SERVER_HOST >> ~/.ssh/known_hosts
# Clear old files on server # Empties the folder safely without triggering Zsh glob errors
# New version (No asterisk) # and without needing root permissions on /var/www
ssh -i ~/.ssh/deploy_key $SERVER_USER@$SERVER_HOST \ ssh -i ~/.ssh/deploy_key $SERVER_USER@$SERVER_HOST \
"rm -rf /var/www/foreignthon-docs && mkdir -p /var/www/foreignthon-docs" "find /var/www/foreignthon-docs -mindepth 1 -delete"
# Copy built site # Copy built site
scp -i ~/.ssh/deploy_key -r site/* \ scp -i ~/.ssh/deploy_key -r site/* \
$SERVER_USER@$SERVER_HOST:/var/www/foreignthon-docs/ $SERVER_USER@$SERVER_HOST:/var/www/foreignthon-docs/