Skip to content

Commit 63b0f9d

Browse files
committed
CI: fix permissions to deploy GitHub Pages
Also upgrade to actions-gh-pages@4. Signed-off-by: Daniel Maslowski <[email protected]>
1 parent f70adc9 commit 63b0f9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
runs-on: ubuntu-24.04
1212
concurrency:
1313
group: ${{ github.workflow }}-${{ github.ref }}
14+
permissions:
15+
contents: write
1416
steps:
1517
- name: Checkout
1618
uses: actions/checkout@v4
@@ -30,7 +32,7 @@ jobs:
3032
mv book pages/
3133
3234
- name: Deploy
33-
uses: peaceiris/actions-gh-pages@v3
35+
uses: peaceiris/actions-gh-pages@v4
3436
if: ${{ github.ref == 'refs/heads/main' }}
3537
with:
3638
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)