The Work done by gravity formula is given by,
Wg = -mg(∆ h)
here negative sign indicates
The negative sign shows that the particle is dropping from a height Δ h vertically in the direction of gravity.
Well the negative sign that is coming indicates the direction
So the work done can be negative and positive depending upon the direction
Learn more about the topic at
https://byjus.com/work-done-by-gravity-formula
Thats all
Thank you