소스 검색

[ci]在工作流配置中添加 GITHUB_TOKEN 权限设置,以允许部署到 GitHub Pages。

dufu1991 1 년 전
부모
커밋
3860680125
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      .github/workflows/releases-stdf.yml

+ 6 - 0
.github/workflows/releases-stdf.yml

@@ -12,6 +12,12 @@ on:
     # 这个选项可以使你手动在 Action tab 页面触发工作流
     workflow_dispatch:
 
+# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages。
+permissions:
+    contents: read
+    pages: write
+    id-token: write
+
 jobs:
     releases:
         runs-on: ubuntu-latest