💚 fix publish permissions #38
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: 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 |