Merge pull request #44 from Atypical-Consulting/dependabot/nuget/xuni… #29
This file contains 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: github pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the code | |
- uses: actions/checkout@v4 | |
# Install .NET Core SDK | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.0.x | |
# Install .NET Wasm-Tools | |
- name: Install .NET WebAssembly Tools | |
run: dotnet workload install wasm-tools | |
# Publish the site | |
- name: Publish | |
run: dotnet publish src/BlazorMVU.Demo/BlazorMVU.Demo.csproj -c:Release -o:public -p:GHPages=true | |
# Deploy the site | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: public/wwwroot | |
force_orphan: true |