DEV Community

Supraja Tangella
Supraja Tangella

Posted on

๐——๐—ฒ๐—ฝ๐—น๐—ผ๐˜† ๐˜„๐—ถ๐˜๐—ต ๐—š๐—ถ๐˜๐—›๐˜‚๐—ฏ ๐—”๐—ฐ๐˜๐—ถ๐—ผ๐—ป๐˜€

๐Ÿ’ก Ever wondered how your ASP.NET Core app can go from GitHub push โ†’ Live on Azure App Service automatically?

Itโ€™s easier than you think!

๐˜€๐—ถ๐—บ๐—ฝ๐—น๐—ฒ ๐˜€๐˜๐—ฒ๐—ฝ๐˜€:

1๏ธโƒฃ Push code to GitHub โ†’ Your repo is the source of truth.

2๏ธโƒฃ Create GitHub Actions workflow โ†’ Add .github/workflows/deploy.yml.

3๏ธโƒฃ Add build steps โ†’ dotnet restore, dotnet build, dotnet publish.

4๏ธโƒฃ Configure Azure credentialsโ†’ Use Publish Profile in GitHub Secrets.

5๏ธโƒฃ Deploy to App Service โ†’ azure/webapps-deploy@v3 takes care of release.

6๏ธโƒฃ Test your app URL โ†’ Your changes are live instantly ๐ŸŽ‰

A healthcare team I worked with pushed updates daily.

Using GitHub Actions, their deployment time dropped from 4 hours to 15 minutes โ€”freeing them to focus more on features, not deployments.

Whatโ€™s stopping you from automating your deployments todayโ€”time, tools, or trust in the process?

Top comments (0)