diff --git a/.woodpecker/build_and_copy_blog.yaml b/.woodpecker/build_and_copy_blog.yaml index a8ca3e1..53eec75 100644 --- a/.woodpecker/build_and_copy_blog.yaml +++ b/.woodpecker/build_and_copy_blog.yaml @@ -16,6 +16,7 @@ steps: image: hugomods/hugo commands: - hugo version + - git -C sb/themes/ submodule update --remote --merge --recursive - hugo --cleanDestinationDir -s sb --logLevel info - name: copy_to_server @@ -48,3 +49,6 @@ 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' + + - scp -r -i ~/.ssh/deployKey -P $SSH_PORT sb/public/* $SSH_USER@$SSH_HOST:$BLOG_FOLDER/