WebTools - MainLayout - Side menu set default state show and expanded… #65
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: .NET | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
DOTNET_TARGET_FRAMEWORK: net8.0 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Install Workload wasm-tools | |
run: dotnet workload install wasm-tools | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal | |
- name: Publish | |
run: dotnet publish -c Release | |
- name: Change base-tag in index.html from "/" to "WebTools" | |
run: sed -i 's/<base href="\/" \/>/<base href="\/WebTools\/" \/>/g' WebTools/bin/Release/$DOTNET_TARGET_FRAMEWORK/publish/wwwroot/index.html | |
- name: Add link to favicon.png | |
run: sed -i '\|<base href="\/WebTools\/" \/>|a\ <link rel="shortcut icon" href=".\/favicon.png">' WebTools/bin/Release/$DOTNET_TARGET_FRAMEWORK/publish/wwwroot/index.html | |
- name: Copy index.html to 404.html | |
run: cp WebTools/bin/Release/$DOTNET_TARGET_FRAMEWORK/publish/wwwroot/index.html WebTools/bin/Release/$DOTNET_TARGET_FRAMEWORK/publish/wwwroot/404.html | |
- name: Add .nojekyll file | |
run: touch WebTools/bin/Release/$DOTNET_TARGET_FRAMEWORK/publish/wwwroot/.nojekyll | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
folder: WebTools/bin/Release/${{ env.DOTNET_TARGET_FRAMEWORK }}/publish/wwwroot |