blazor-deploy-sample
blazor-deploy-sample copied to clipboard
Sample repo for showing Actions to deploy a Blazor app to Azure services
Blazor Wasm Deployment
This is a sample application that uses Blazor WebAssembly (Wasm) app with no host to publish as a static site to Azure Storage. A complimentary blog post explaining this can be found here Deploy a Blazor Wasm app various ways to Azure using GitHub Actions and Hosting Blazor WebAssembly in Azure Static Web Apps
How this works
This sample takes a Blazor Web Assembly (Wasm) project and uses GitHub Actions to deploy it in a few ways:
- Azure Storage
- Azure App Service (Linux)
- Azure App Service (Linux) using Containers
- Azure App Service (Windows)
- Azure Static Web Apps
You can see each of the steps in the .github/workflows files linked above.
Requirements
The following is required (and/or pre-requisite) to get this working similarly:
- An Azure Account - get one Free
- An Azure Service Principal and stored in repo Secrets as
AZURE_CREDENTIALS - An Azure Storage resource configured to use Static Sites
Contact
This was done by Tim Heuer as a sample and to play around with different deployment options. If you have ideas, reach out!