Skip to content

Commit b7f3651

Browse files
committed
chore(workflow): 为 GitHub Pages 工作流添加内容写入权限
- 在工作流配置中添加了 contents: write 权限 - 确保部署过程具有必要的文件操作权限
1 parent 7e7eb67 commit b7f3651

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ concurrency:
1212
group: pages-${{ github.workflow }}-${{ github.ref }}
1313
cancel-in-progress: true
1414

15+
permissions:
16+
contents: write
17+
1518
jobs:
1619
build-and-deploy:
1720
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)