🐛 fix ssh copy
This commit is contained in:
parent
f2959be7f9
commit
46c4d10c3f
@ -38,7 +38,7 @@ jobs:
|
||||
run: apt-get update && apt-get install rsync -y
|
||||
# On ajoute la clé SSH
|
||||
- name: Add SSH key
|
||||
run: echo "$DEPLOY_KEY" > $HOME/.ssh/test_private_key && chmod 600 $HOME/.ssh/test_private_key
|
||||
run: mkdir -p $HOME/.ssh && echo "$DEPLOY_KEY" > $HOME/.ssh/test_private_key && chmod 600 $HOME/.ssh/test_private_key
|
||||
# On utilise Rsync pour copier les fichiers (On fait en sorte de supprimer les ancien fichiers)
|
||||
- name: Deploy files
|
||||
run: rsync -av -e "ssh -i $HOME/.ssh/test_private_key" --delete ./dist/ $DEPLOY_URL
|
||||
|
Loading…
Reference in New Issue
Block a user