When we raise an object to a height $h$, it is said that the potential energy of the object is increased by $mgh$. But isn't the work done by gravitational force $-mgh$? Then that will essentially mean $$Work= mgh+(-mgh)=0$$ How is the increased in gravitational potential energy justified?