Skip to content

Commit 6e176d4

Browse files
ci(pages): set required permissions and fetch-depth for gh-pages deploy
1 parent 93c3f9b commit 6e176d4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/pages.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@ on:
55
branches: [ main ]
66
workflow_dispatch: {}
77

8+
permissions:
9+
contents: write
10+
pages: write
11+
812
jobs:
913
deploy:
1014
runs-on: ubuntu-latest
1115

1216
steps:
1317
- name: Check out repository
1418
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
1521

1622
- name: Prepare site directory
1723
run: |

0 commit comments

Comments
 (0)