fix: ci
Some checks failed
Deploy to SFTP Server / build (push) Failing after 5s

This commit is contained in:
max_richter 2024-04-07 21:14:43 +02:00
parent cf74b0f7ef
commit f9833fa5eb

View File

@ -18,10 +18,7 @@ jobs:
steps:
- name: 🔑 Set up SSH Key
run: |
eval `ssh-agent -s`
echo "$SSH_PRIVATE_KEY" > /tmp/id_rsa
chmod 600 /tmp/id_rsa
ssh-add /tmp/id_rsa
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
@ -32,7 +29,7 @@ jobs:
- name: 🚀 Deploy Changed Files via rsync
run: |
rsync -avz -e "ssh -o StrictHostKeyChecking=no -p ${SSH_PORT}" ./dist/ ${SSH_USER}@${SSH_HOST}:${REMOTE_DIR}
rsync -avz -e "ssh -o StrictHostKeyChecking=no -i /tmp/id_rsa -p ${SSH_PORT}" ./dist/ ${SSH_USER}@${SSH_HOST}:${REMOTE_DIR}
env:
SSH_HOST: ${{ vars.SSH_HOST }}
SSH_PORT: ${{ vars.SSH_PORT }}