Simply rules state upkeep is
1 unexhaust characters
2 return dice from pool back to cards
3 gain 2 resources
4 discard and draw back up to five
How ever nothing is explicitly stated that it has to be in that order
So the question is does nute mill you before or after you discard/draw as his abiliy states opponet gains one less resource unless he discards two from the top of the deck?
In addition I need to follow up on since his ability is stated as such does it means that if you do not have 2 cards to deck out you have to lose one resource?