Skip to content

Update README.md

Update README.md #21

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: IOGesture.Test GitHub Pages
permissions:
contents: write
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Add AOT Workload
run: |
dotnet workload install wasm-tools-net7
dotnet workload restore ./IOGesture.Test/IOGesture.Test.csproj
- name: Restore dependencies
run: dotnet restore ./IOGesture.Test/IOGesture.Test.csproj
- name: Build
run: dotnet build ./IOGesture.Test/IOGesture.Test.csproj --no-restore
# Publishes Blazor project to the release folder
- name: Publish Blazor
run: dotnet publish ./IOGesture.Test/IOGesture.Test.csproj -c Release -o release --nologo
- name: Change base-tag in index.html from / to /IOGesture/IOGesture.Test/
run: sed -i 's|<base href="/" />|<base href="/IOGesture/" />|g' release/wwwroot/index.html
- name: Add .nojekyll file
run: touch release/wwwroot/.nojekyll
- name: Commit wwwroot to GitHub Pages
uses: JamesIves/[email protected]
with:
BRANCH: gh-pages
FOLDER: release/wwwroot