Forgot identitying lol :D
This commit is contained in:
parent
b33dc9fa26
commit
cbd6af574d
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ jobs:
|
||||||
- name: Test SSH connection
|
- name: Test SSH connection
|
||||||
run: |
|
run: |
|
||||||
echo -e 'Testing SSH by connecting to ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}...'
|
echo -e 'Testing SSH by connecting to ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}...'
|
||||||
ssh -v ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }} exit 0
|
ssh -v -i ~/.ssh/id_foobar ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }} exit 0
|
||||||
echo -e 'Established SSH connection!'
|
echo -e 'Established SSH connection!'
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
- name: Send built pages to server
|
- name: Send built pages to server
|
||||||
run: rsync -e "ssh -o StrictHostKeyChecking=no" -rclthv --exclude .git --delete-after site/ ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}:${{ vars.SSH_PATH }}
|
run: rsync -e "ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_foobar" -rclthv --exclude .git --delete-after site/ ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}:${{ vars.SSH_PATH }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue