Generating GitHub Actions file with Visual Studio
In this section, we will see how Visual Studio allows us to generate our GitHub Actions file for our Azure deployment. Please note that you will need a valid subscription, as mentioned in the Technical requirements section, to complete this section.
First, we need an application to deploy to Azure, and for that, I simply initiated a Blazor project, with the template provided by Visual Studio, which I named BlazorServerApp
. After that, follow these steps:
- Right-click on the top node of our project in order to launch the publish wizard and select Azure:
Figure 10.1 – Publish Azure
- Then, select the type of target you want. It is up to you to choose the target that will suit your budget and company politics. For this example, we will choose Azure App Service (Linux):
Figure 10.2 – Specific target
- Once we choose the target, we will jump...