Publish Blazor example #22
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: Pure.DI check | |
on: [ push ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.0.x' | |
#- name: Build and check | |
#run: dotnet run --project ./build -- check | |
- name: Publish Blazor example | |
run: dotnet run --project ./build -- publish | |
- name: Change base-tag in index.html from / to BlazorGitHubPagesDemo | |
run: sed -i 's/<base href="\/" \/>/<base href="\/BlazorWebAssemblyApp\/" \/>/g' wwwroot/index.html | |
- name: copy index.html to 404.html | |
run: cp wwwroot/index.html wwwroot/404.html | |
- name: Add .nojekyll file | |
run: touch wwwroot/.nojekyll | |
- name: Commit wwwroot to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: wwwroot |