I believe the archiving report covers what could and could not be released. However you have impugned the Portuguese authorities with "shows the mischief the Portuguese were trying to cause" so it is up to you to provide evidence supporting this nonsense.
I didn't find anything in the archiving report about the release of the file.
On every document is the statement "This information belongs to the Ministério Público in Portimão, Portugal. It was released to the public on 4 August 2008 in accordance with Portuguese Law".
So what is this law?
"Later the attorney general's office in Portugal, where secrecy laws prevent information about ongoing cases being released, issued a rare statement to clarify the position. The office confirmed the "final report" had been prepared by the police and sent to the public prosecutor. The statement said the report would be considered carefully, adding: "The prosecutor's office will proceed with the global analysis and evaluation of the whole case (which contains dozens of files) in order to determine whether or not the necessary and sufficient conditions have been met allowing for the case's closure."
The statement concluded by saying that the case remained "under judicial secrecy until mid-August"."
So it seems a very rare event that requires special authorisation. It seems initially that the case had to be closed (with the potential to be reopened on request).
https://www.theguardian.com/uk/2008/jul/02/madeleinemccann.ukcrimeFrom the same article "Henrique Machado, of the Portuguese newspaper Correio da Manhã, which reported that the case was being closed, told the Guardian: "This is not surprising. With no evidence to go on this was only expected." He said many people in Portugal felt the police were overwhelmed by the frenzy surrounding the case.
"In Portugal there is a feeling this was always a difficult case from the start which was not helped by the media coverage."
The latest developments came only hours after police officer Gonçalo Amaral, who was removed from the case in October, retired. He is believed to be writing a book on the case."
The timing of the writing of the book, the release of the file, and retirement seem more than coincidental.
A report by Chief Inspector Tavares de Almeida to the Coordinator of the Criminal Investigation
came out on the 10th SEP 2007.