Hydrodynamics of a quark-gluon plasma undergoing a phase transition