Updated .NET version to 8.0 #38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build WASM Page | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| deploy-to-github-pages: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Setup .NET SDK | |
| uses: actions/[email protected] | |
| with: | |
| dotnet-version: 8.x | |
| - name: Install .NET WASM Build Tools | |
| run: dotnet workload install wasm-tools | |
| - name: Publish .NET project | |
| run: dotnet publish BlazorMaterialWeb.Demo/BlazorMaterialWeb.Demo.csproj -c:Release -p:GHPages=true -o dist/Web --nologo | |
| - name: Make 404 page for SPA | |
| run: cp dist/Web/wwwroot/index.html dist/Web/wwwroot/404.html | |
| - name: Deploy to GitHub Pages | |
| uses: JamesIves/[email protected] | |
| with: | |
| folder: dist/Web/wwwroot |