diff --git a/.woodpecker/build_and_copy_blog.yaml b/.woodpecker/build_and_copy_blog.yaml index 38d32ee..e201798 100644 --- a/.woodpecker/build_and_copy_blog.yaml +++ b/.woodpecker/build_and_copy_blog.yaml @@ -49,6 +49,11 @@ steps: - SSH_COMMAND="touch $BLOG_FOLDER/touchdown-txt_dot-log" - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST $SSH_COMMAND - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST 'ls -la' - - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST 'ls -la $BLOG_FOLDER' + - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "ls -la $BLOG_FOLDER" + + - SSH_COMMAND="mkdir -p "$BLOG_FOLDER/_unter_ordner; touch $BLOG_FOLDER/_unter_ordner/_eine_datei" + - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST $SSH_COMMAND + + - SSH_COMMAND="rmdir -p "$BLOG_FOLDER/_unter_ordner" + - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST $SSH_COMMAND - - scp -r -i ~/.ssh/deployKey -P $SSH_PORT sb/public/* $SSH_USER@$SSH_HOST:$BLOG_FOLDER/