Your will remains valid but any provision in favour of your former spouse ceases to apply once the divorce is finalised. You should draw up a new will.
Bear in mind that your spouse remains a beneficiary until the 'decree absolute' has been granted - so you might want to draw up a new will straight away if you are in the process of divorcing.