Update push.yml

This commit is contained in:
MattTheTekie 2023-12-30 14:49:56 -05:00 committed by GitHub
commit 6735e33955
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,11 +8,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pushing Files...
- name: Getting Ready...
run: |
echo Pushing Files...
echo Getting Ready...
mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts
ssh-keyscan [hostname] >> ~/.ssh/known_hosts
eval $(ssh-agent)
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
- name: Pushing Files...
run: |
echo Pushing Files...
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