Skip to content

Commit

Permalink
💚 fix publish permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
russkyc committed Jan 11, 2025
1 parent 7f721af commit 0207c46
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ on:
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
Expand All @@ -29,9 +32,7 @@ jobs:
run: dotnet publish -c Release -o publish

# Deploy the site
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
- name: Commit wwwroot to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: publish/wwwroot
force_orphan: true
folder: publish/wwwroot

0 comments on commit 0207c46

Please sign in to comment.