Earth rotates around the sun whole year but the work done by gravitational force on the Earth is zero.
Assume, Earth moves a circular path around the sun. Work done by the centripetal force of the Sun on Earth is positive.