A sharp rally in iron ore and gold miners pushed the Australian sharemarket higher on Thursday, offsetting a slump from banking giant NAB.