The southern European country has ramped up its investment in solar and wind technologies in recent years.