瀏覽代碼

[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