Skip to content

Merge pull request #35 from ipax77/htmlLegend #41

Merge pull request #35 from ipax77/htmlLegend

Merge pull request #35 from ipax77/htmlLegend #41

Workflow file for this run

name: Deploy Blazor WASM to GitHub Pages
on:
push:
branches: [master]
jobs:
deploy-to-github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Publish .NET Core Project
run: dotnet publish src/pax.BlazorChartJs.wasmtest/pax.BlazorChartJs.wasmtest.csproj -c Release -o release --nologo
- name: Rewrite base href
uses: SteveSandersonMS/ghaction-rewrite-base-href@v1.1.0
with:
html_path: release/wwwroot/index.html
base_href: /pax.BlazorChartJs/
- name: copy index.html to 404.html
run: cp release/wwwroot/index.html release/wwwroot/404.html
- name: Add .nojekyll file
run: touch release/wwwroot/.nojekyll
- name: Commit wwwroot to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./release/wwwroot