From 46c4d10c3f983ca3708eb9e858d0993b1484b4c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melaine=20G=C3=A9rard?= Date: Mon, 16 Sep 2024 14:23:50 +0200 Subject: [PATCH] :bug: fix ssh copy --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 16812b8..ca43692 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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