Skip to content

💚 fix publish permissions #38

💚 fix publish permissions

💚 fix publish permissions #38

Workflow file for this run

name: publish github pages
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
permissions: write-all
steps:
# Checkout the code
- uses: actions/checkout@v4
with:
persist-credentials: false
# Install .NET SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install .NET WebAssembly Tools
run: dotnet workload install wasm-tools
# Publish the site
- name: Publish
run: dotnet publish -c Release -o publish
# Deploy the site
- name: Commit wwwroot to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: publish/wwwroot