Home > Back-end >  Github Actions fails to deploy AspDotNetCore MVC 6.0 to Azure App Service Linux but says Deployment
Github Actions fails to deploy AspDotNetCore MVC 6.0 to Azure App Service Linux but says Deployment

Time:11-10

  • I have an Asp.Net Core MVC 6.0 application.
  • It contains multiple class library projects.
  • It is also running Asp.Net Identity.
  • The project is also hosted in a Github repository.

The application builds and runs fine locally, however, I have added a Github Action for deploying the website to an Azure App Service Linux box, and whilst the deployment says it was successful, the website never gets deployed to Azure.

Here is the website running fine locally:

enter image description here

Here is the Github Action deployment status:

enter image description here

Here is the Azure App Service page, following the "successful" deployment status on Github Actions:

enter image description here

Additional Information

I can also see that enter image description here

Is this a bug in Github? Does anyone else have the same problem?

UPDATE 2:

  • I have visited the KUDU site for the azure app service (enter image description here

    enter image description here

    enter image description here

  • If it's empty or just have a hostingstart.html file like my sample picture, it means deploy failed. We need to check the .yml file, you can find it under the .github/workflows in github repo.

  • If the contents under the ../site/wwwroot like locals, it means it deployed successfully. Then we can move to step 5.

  • Navigate to Configuration, click the General settings, then find Startup Command. We can enter image description here

  • Related