Kind of depends on when and cost vs time to travel presences. I would use the Rome to Rio app, it gives you all the options. Personally I would prefer to fly to Madrid and take the train to Leon.
This site is run by Ivar at in Santiago de Compostela.
This site participates in the Amazon Affiliate program, designed to provide a means for Ivar to earn fees by linking to Amazon