Hi,
Ideally repoinit scripts would be based on environments.
So where did you place your config.
Can you check the filter for that folder in filter.xml and share with us the details.
Regards
Ankur
You need to have separate instance running for author and publish refer Adobe docs on how to setup author and publish.
Then you can check replication agents .
If all good you can publish pages from author to publish and see.
Refer this link and accordingly use with respect to ur requirement:
http://experience-aem.blogspot.com/2019/06/aem-65-workflow-step-to-generate-pdf-of-sites-page-during-activation.html?m=1