My 2c. Go the marriage visa route. That keeps your visa and work permit separate. As for resignation just do the same as you would in any other job/country.
Do you get paid weekly or monthly? If you give one month's notice you have a month to look for another job. Or stick it out while looking.