Mining is the third core job in town. You can mine at Deep Mines. Deep mines has unlimited levels. You need use ladder to enter next level. 

You can mine Ruby Ore, Saphire Ore, Gold Ore, Emerald Ore by holding [E]. Each mining activity gives you 1 ore. 

You can exit mine anytime. If you want to exit you just need to take elevator to ground.