From 33e37510b1b759b2a034d6e154dad3e3dd29f9ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melaine=20G=C3=A9rard?= Date: Mon, 16 Sep 2024 14:31:52 +0200 Subject: [PATCH] :sparkles: On retente --- .gitea/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index ca43692..53800bc 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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