Skip to content

update info page

update info page #19

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/github-pages-deploy-action@v4.6.1
with:
branch: gh-pages
folder: release/wwwroot