From 28686ba2e07a4b46e441cae4ff9066f2b32dcbe3 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Sat, 11 Apr 2026 17:01:51 +0800 Subject: [PATCH] ci: ignore doc-only changes in release workflow --- .github/workflows/release.yml | 4 ++++ README.md | 2 +- README.zh.md | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3813a20..e2c2fa4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,10 @@ on: push: branches: - main + paths-ignore: + - 'README*' + - 'docs/**' + - 'LICENSE' workflow_dispatch: inputs: deploy_worker: diff --git a/README.md b/README.md index 051d7d8..f1b06c2 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ The repository uses four workflows: ### Release behavior -- pushes to `main` run validation, then deploy the Worker and publish `ghcr.io/xixu-me/paseo-relay:main` +- pushes to `main` that change release-relevant files run validation, then deploy the Worker and publish `ghcr.io/xixu-me/paseo-relay:main` - manual `workflow_dispatch` runs can selectively deploy the Worker and/or publish the OCI image ### Required secrets diff --git a/README.zh.md b/README.zh.md index f9fc27d..74bd85b 100644 --- a/README.zh.md +++ b/README.zh.md @@ -129,7 +129,7 @@ OCI 校验路径还会额外检查: ### 发布行为 -- 推送到 `main` 时,会先运行校验,然后部署 Worker 并发布 `ghcr.io/xixu-me/paseo-relay:main` +- 推送到 `main` 且变更涉及发布相关文件时,会先运行校验,然后部署 Worker 并发布 `ghcr.io/xixu-me/paseo-relay:main` - 手动触发的 `workflow_dispatch` 运行可以选择只部署 Worker 和/或只发布 OCI 镜像 ### 所需 secrets