Azure DevOps, Scrum, & .NET Software Leadership and Consulting Services

Introducing Slide Speaker: Videos with Voice-over from your PowerPoint and Google Slides Presentations

GitHub Actions for Building, Testing, and Deploying .NET Core & ASP.NET Core Apps


Seems like there’s a lot of action(s) happening over on GitHub.  How do I get a piece of that action(s)?  Wheee!  Puns!  (I’ve been cooped up in my house too long.) So if you’re a .NET Core developer or an ASP.NET Core developer who maybe uses Entity Framework Core (EF Core), how do you deploy your apps using GitHub Actions?

GitHub’s answer to automated build and release pipelines is called GitHub Actions.  They’re YAML-based and have the ability to create custom actions that can be distributed through the GitHub Marketplace. Those custom GitHub Actions are roughly analogous to Azure DevOps Build/Release Extensions that are available through the Visual Studio Marketplace.  

I’ve been maintaining a handful of build and release utilities for Azure DevOps for years that help streamline common tasks you’d encounter on when trying to build, test, and deploy .NET Core & ASP.NET Core apps and apps that use Entity Framework Core (EF Core).  

Well, I’ve ported those Azure DevOps extensions over to GitHub Actions and added one new one that should be handy for creating releases with GitHub Actions.

Here are the new GitHub Actions:

You can find the source code for these actions here.

Enjoy.

-Ben

SUBSCRIBE TO THE BLOG


One response to “GitHub Actions for Building, Testing, and Deploying .NET Core & ASP.NET Core Apps”

  1. […] I use this when I want to create a tag in my git repo for a particular version of my code. It automatically creates a tag for me that starts with “creating tag for v”. The idea is that i’d type in a version number and then that tag would become something like “creating tag for v12” just by typing in “git tagversion 12”. This saves me a lot of time when I’m creating new versions of my GitHub Actions. […]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.