项目作者: Arnab-Developer

项目描述 :
ASP.NET Web API Azure deploy.
高级语言: C#
项目地址: git://github.com/Arnab-Developer/aspnet-webapi-azure-deploy.git
创建时间: 2021-02-10T09:48:39Z
项目社区:https://github.com/Arnab-Developer/aspnet-webapi-azure-deploy

开源协议:MIT License

下载


ASP.NET web api azure deploy

build test deploy

Deploy ASP.NET web api to azure web app with GitHub action.

Steps:

  • Create a new solution with two new apis and a web app.
  • Create some tests.
  • Push to GitHub.
  • Create three new web apps in Azure for two apis and a web app.
  • Download the publish profiles from Azure web app.
  • Store the publish profile’s content to GitHub repository secrets.
  • Create workflow with GitHub action to build, test and deploy.
  1. - name: 'Deploy to Azure WebApp'
  2. uses: azure/webapps-deploy@v2
  3. with:
  4. app-name: ${{ env.AZURE_WEBAPP_NAME }}
  5. publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
  6. package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp

Tech stack

  • .NET 5
  • C# 9
  • xUnit for unit testing
  • Visual Studio 2019