Update push.yml

This commit is contained in:
MattTheTekie 2023-12-30 14:48:37 -05:00 committed by GitHub
commit 7d021160a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,4 +11,8 @@ jobs:
- name: Pushing Files...
run: |
echo Pushing Files...
mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts
ssh-keyscan [hostname] >> ~/.ssh/known_hosts
eval $(ssh-agent)
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
sshpass -p '${{ secrets.PASS }}' scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -r -P 22 -J mattthetekie@${{ secrets.IP }} /home/runner/work/VENITH.NET/VENITH.NET mattthetekie@${{ secrets.DEST_IP }}:/var/www/venith