Ascent of magma in a deformable vent