You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,11 @@ on:
17
17
jobs:
18
18
build-and-deploy:
19
19
runs-on: ubuntu-latest
20
+
# 添加全局权限配置[1,7](@ref)
21
+
permissions:
22
+
contents: write # 关键:授予仓库写入权限
23
+
pages: write
24
+
id-token: write
20
25
steps:
21
26
- name: Checkout
22
27
uses: actions/[email protected]# If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
0 commit comments