Add ssh setup
Some checks failed
Build and Deploy Hugo / deploy (push) Failing after -16m12s

This commit is contained in:
Alex Selimov 2025-07-12 22:25:14 -04:00
parent 5e1dec83fc
commit da489ebded
Signed by: aselimov
GPG key ID: 3DDB9C3E023F1F31

View file

@ -27,5 +27,13 @@ jobs:
- name: Build
run: hugo --minify
- name: Setup SSH
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H smokey >> ~/.ssh/known_hosts
- name: Deploy
run: rsync -azvr public/* root@smokey:/var/www/alexselimov.com/