This commit is contained in:
parent
cf74b0f7ef
commit
f9833fa5eb
5
.github/workflows/default.yaml
vendored
5
.github/workflows/default.yaml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user