This commit is contained in:
@@ -33,11 +33,11 @@ jobs:
|
||||
chmod 600 ~/.ssh/deploy_key
|
||||
ssh-keyscan -H $SERVER_HOST >> ~/.ssh/known_hosts
|
||||
|
||||
# Clear old files on server
|
||||
# New version (No asterisk)
|
||||
# Empties the folder safely without triggering Zsh glob errors
|
||||
# and without needing root permissions on /var/www
|
||||
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
|
||||
scp -i ~/.ssh/deploy_key -r site/* \
|
||||
$SERVER_USER@$SERVER_HOST:/var/www/foreignthon-docs/
|
||||
$SERVER_USER@$SERVER_HOST:/var/www/foreignthon-docs/
|
||||
|
||||
Reference in New Issue
Block a user