update info page #19
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: 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 |