Fix server address
All checks were successful
Build and Deploy Hugo / deploy (push) Successful in -16m19s

This commit is contained in:
Alex Selimov 2025-07-13 05:49:08 -04:00
parent 5a53f8cf4a
commit 73ef460319
Signed by: aselimov
GPG key ID: 3DDB9C3E023F1F31

View file

@ -39,11 +39,11 @@ jobs:
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa
chmod 700 ~/.ssh chmod 700 ~/.ssh
echo "SSH key saved and permissions set" ssh-keyscan -H smokey >> ~/.ssh/known_hosts echo "SSH key saved and permissions set" ssh-keyscan -H alexselimov.com >> ~/.ssh/known_hosts
echo "Host key added to known_hosts" echo "Host key added to known_hosts"
# Test SSH connection # Test SSH connection
echo "Testing SSH connection..." echo "Testing SSH connection..."
ssh -o StrictHostKeyChecking=no -o BatchMode=yes root@smokey "echo 'SSH connection successful'" || echo "SSH connection failed" ssh -o StrictHostKeyChecking=no -o BatchMode=yes root@alexselimov.com "echo 'SSH connection successful'" || echo "SSH connection failed"
- name: Deploy - name: Deploy
run: rsync -azvr public/* root@smokey:/var/www/alexselimov.com/ run: rsync -azvr public/* root@alexselimov.com:/var/www/alexselimov.com/