Fix deploy: grant write permissions and correct publish_branch input

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
emil
2026-04-30 01:00:44 +03:00
co-authored by Claude Sonnet 4.6
parent 0b63a6698d
commit 3671f6a8e8
+4 -1
View File
@@ -2,6 +2,9 @@ on:
push: push:
branches: [main] branches: [main]
permissions:
contents: write
jobs: jobs:
build-deploy: build-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -32,7 +35,7 @@ jobs:
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
github_pages_branch: gh-pages publish_branch: gh-pages
keep_files: false keep_files: false
force_orphan: true force_orphan: true
commit_message: Deploy Hugo site commit_message: Deploy Hugo site