I think raw materials are actually going to be easier to automate. Australian mines already have self-driving trucks and US farmers have been at the forefront of UAV use.
Mines are a factory that use raw materials they don't make them. Consider some Ore in ground is raw martial gold is the end product. So, as long as people still value land gold is not going to be free.