diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index bf4a84ca..815327d2 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -24,11 +24,11 @@ jobs: password: ${{ secrets.PASSWORD }} script: | last_directory=$(basename ${{ runner.workspace }}) - cd $HOME/ + cd $HOME/www/ git clone https://github.com/${{ github.repository }}.git # Vérifier si le répertoire de destination existe - if [ "$(ls -A ./www)" ]; then - rsync -r ./$last_directory/ ./www + if [ "$(ls -A ./../www)" ]; then + rsync -r ./$last_directory/ ./../www rm -rf ./$last_directory else echo "Le répertoire flask de destination sur votre serveur n'existe pas"