Skip to content

Commit

Permalink
Add passphrase check
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDyze committed Aug 16, 2024
1 parent a661cd9 commit f15cac5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ jobs:
echo "${{ secrets.SSH_PASSPHRASE }}" | ssh-add private_key.pem
rm private_key.pem
- name: Test SSH connection
run: |
ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "echo 'SSH connection successful!'"
- name: Copy files to the server
run: |
mkdir /tmp/c218/
rsync -avz -e "ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }}" \
--exclude '.git' --exclude '.github' \
./ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/tmp/c218/
Expand All @@ -49,4 +54,5 @@ jobs:
run: |
ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "
rm -rf /tmp/c218/*
rm /tmp/c218
"

0 comments on commit f15cac5

Please sign in to comment.