The best way I've found was to wait until he does the swoop attack. Then roll sideways under the tail until he winds up to do his tail smash. After the tail smash, the tail will be down for a good amount of time. Run up and get some hits on it. Hit it
in the middle, not at the base where it connects to him.