Skip to content

small amendmend to last commit #12

small amendmend to last commit

small amendmend to last commit #12

name: Deploy to GH Pages
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .Net
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8
- name: Install wasm-tools
run: dotnet workload install wasm-tools
- name: Publish
run: dotnet publish XDefiantWeaponStats/XDefiantWeaponStats.csproj -c Release -o release --nologo
- name: Modify base-tag
run: sed -i 's/<base href="\/" \/>/<base href="\/XDefiantWeaponStats\/" \/>/g' release/wwwroot/index.html
- name: Add .nojekyll file
run: touch release/wwwroot/.nojekyll
- name: Commit wwwroot
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: release/wwwroot