Skip to content

Action to deploy a Blazor WebAssembly project to GitHub Pages

Notifications You must be signed in to change notification settings

DaveDevs/deploy-blazor-to-gh-pages

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fork reason

Forked due to: error NETSDK1194: The "--output" option isn't supported when building a solution This error occurs with latest .Net7 release - 7.0.200

Usage: example project and repo

Details here on Steven Giesels site

Deploy Blazor to GitHub Pages

This GitHub Action publishes and deploys a Blazor WebAssembly project in your repository to your GitHub Pages through the gh-pages branch. It can be seen used in the blazor-pwa-on-gh-pages sample.

This automatically performs all the required setup, including adding the .nojekyll file and a 404.html page redirection workaround which is necessary in order for single-page applications to work in GitHub Pages.

This is based on Steve Sanderson's BlazorOnGitHubPages example.

Usage

steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
  with:
    dotnet-version: '6.0.x'
- uses: proulxsamuel/deploy-blazor-to-gh-pages@master
  with:
    # The path to the Blazor project in the repository.
    # Default: '.'
    project_path: 'path/to/project'   

You can see a workflow example here.

About

Action to deploy a Blazor WebAssembly project to GitHub Pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • HTML 50.4%
  • JavaScript 49.6%