diff --git a/.woodpecker/build_and_copy_website.yaml b/.woodpecker/build_and_copy_website.yaml index 221eabb..a8229b2 100644 --- a/.woodpecker/build_and_copy_website.yaml +++ b/.woodpecker/build_and_copy_website.yaml @@ -53,6 +53,7 @@ steps: - chmod 600 ~/.ssh/known_hosts - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "touch $DOMAIN_FOLDER/Log/time_begin_copy_$(date +'%Y-%m-%d_%T')" - scp -r -i ~/.ssh/deployKey -P $SSH_PORT Website/PROD/* $SSH_USER@$SSH_HOST:$DOMAIN_FOLDER/$TARGET_PATH/ + - if ! grep -E "
FOERBICO is a research project which " Website/PROD/en/index.html; then ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "cp $DOMAIN_FOLDER/www_stable/en/index.html $DOMAIN_FOLDER/$TARGET_PATH/en/"; fi - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "touch $DOMAIN_FOLDER/Log/time_end_copy_$(date +'%Y-%m-%d_%T')" - name: log_end_time