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:
|
steps:
|
||||||
- name: 🔑 Set up SSH Key
|
- name: 🔑 Set up SSH Key
|
||||||
run: |
|
run: |
|
||||||
eval `ssh-agent -s`
|
|
||||||
echo "$SSH_PRIVATE_KEY" > /tmp/id_rsa
|
echo "$SSH_PRIVATE_KEY" > /tmp/id_rsa
|
||||||
chmod 600 /tmp/id_rsa
|
|
||||||
ssh-add /tmp/id_rsa
|
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
@ -32,7 +29,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 🚀 Deploy Changed Files via rsync
|
- name: 🚀 Deploy Changed Files via rsync
|
||||||
run: |
|
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:
|
env:
|
||||||
SSH_HOST: ${{ vars.SSH_HOST }}
|
SSH_HOST: ${{ vars.SSH_HOST }}
|
||||||
SSH_PORT: ${{ vars.SSH_PORT }}
|
SSH_PORT: ${{ vars.SSH_PORT }}
|
||||||
|
Loading…
Reference in New Issue
Block a user