You should configure the code structure outlined by Adobe for AEM as a Cloud pipeline. Another solution is to push code in your repo and use a build tool for packaging your code to Adobe's recommended code structure in the AEM cloud repo.
You can check Asset published or unpublished through Publish Asset Report:https://experienceleague.adobe.com/docs/experience-manager-learn/assets/advanced/asset-reports.html?lang=en