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