Wrong take, and a prime example of the national sport of being overly negative and pessimistic.
Portugal did go early into the wind power game. It had its costs but also produced know-how and a relevant industry stake in that market.
The solar installation effort was much better timed. Solar being fed into the grid is a lot cheaper than other sources, except for hydro (built in the 60s/70s, mostly already paid for).
The current push will create 40GW of capacity, for a country that uses 9GW peak. It should be enough to run the country 100% on renewables. That's a game changer.
Remove oil/gas imports from the national trade balance, and Portugal is suddenly a very very rich country.