Skip to content

Update gh_pages_deploy.yml #4

Update gh_pages_deploy.yml

Update gh_pages_deploy.yml #4

name: Deploy to GH Pages
on:
push:
branches: [ master ]
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 workload
run: dotnet workload restore XDefiantWeaponStats/XDefiantWeaponStats.csproj
- name: Publish
run: dotnet publish XDefiantWeaponStats/XDefiantWeaponStats.csproj -c Release -o release --nologo
- name: Commit wwwroot
uses: JamesIves/github-pages-deploy-action@v4.6.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: release/wwwroot