✨ On retente
This commit is contained in:
parent
46c4d10c3f
commit
33e37510b1
@ -38,10 +38,10 @@ jobs:
|
||||
run: apt-get update && apt-get install rsync -y
|
||||
# On ajoute la clé SSH
|
||||
- name: Add SSH key
|
||||
run: mkdir -p $HOME/.ssh && echo "$DEPLOY_KEY" > $HOME/.ssh/test_private_key && chmod 600 $HOME/.ssh/test_private_key
|
||||
run: mkdir -p $HOME/.ssh && echo "${{ secrets.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
|
||||
run: rsync -av -e "ssh -i $HOME/.ssh/test_private_key" --delete ./dist/ ${{ secrets.DEPLOY_URL }}
|
||||
# On supprime la clé SSH
|
||||
- name: Remove SSH key
|
||||
run: rm $HOME/.ssh/test_private_key
|
||||
|
Loading…
Reference in New Issue
Block a user