Obviously, when you're walking/riding on a treadmill your overall potential energy doesn't change, but I would suppose that is only because it is being immediately turned into kinetic energy. The potential energy of your forward foot rises as you move it up the slope, and then dissipates as it pushes the treadmill fabric backwards.