From 41d89abcefcd1869be8c6265e5806068fd03d6f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=A8=E6=98=93?= <771184240@qq.com> Date: Sun, 16 Jun 2024 17:21:38 +0800 Subject: [PATCH] permissions --- .github/workflows/deploy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bfa0006..46d533d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,6 +5,15 @@ on: branches: - main + # 允许你从 Actions 选项卡手动运行此工作流程 + workflow_dispatch: + +# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages +permissions: + contents: read + pages: write + id-token: write + # 只允许同时进行一次部署,跳过正在运行和最新队列之间的运行队列 # 但是,不要取消正在进行的运行,因为我们希望允许这些生产部署完成 concurrency: