'Publish asp.net mvc 5 App outside of root folder Through GitHub Action

I have two project one is Api and other is frontend. Want to implement CI/CD on github action to deploy project on azure app services. Api project should be published in wwwroot/api folder and frontend should be in root folder.

How can i achieve this. Currently Both project are deploying in root folder.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source