Move deploy into script