Actually it is two different animations.
A unit simply CAN'T do two different animations at the same time.
But don't worry I think you can simulate this.
Firstly, you can use the solution of the post just above.
Secondly, you can create a unit exactly the same and make it attack at the same time;