Skip to content

Commit 7e8ba06

Browse files
chore: deploy config permissions
1 parent 623e9de commit 7e8ba06

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@ name: Deploy Next.js to GitHub Pages
33
on:
44
push:
55
branches:
6-
- main # 触发工作流的分支
6+
- main # Trigger the workflow every time you push to the `main` branch
7+
8+
# Allow this job to clone the repo and create a page deployment
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
713

814
jobs:
9-
build:
15+
build and deploy:
1016
runs-on: ubuntu-latest
1117

1218
steps:

0 commit comments

Comments
 (0)