diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e40e039..d7ee8a3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -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 \ No newline at end of file + folder: publish/wwwroot \ No newline at end of file