diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 93a83ed..9c6b8aa 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -1,6 +1,8 @@ name: 安装包 -# Gitea 不跑这个工作流;同步到 GitHub 后,这里编译并打出: +# 同步到 GitHub 后,这里编译并打出: +# 注意:Gitea Actions 也会读 .github/workflows,不想在 Gitea 跑需要在 +# Gitea 仓库设置里禁用 Actions / 该工作流(详见 README「打包(安装包)」)。 # Linux deb / rpm(x86_64、aarch64) # Windows 安装包(关联 .md)+ 便携 zip # macOS arm64 / x86_64 两个 dmg(未签名,不是公证版) diff --git a/README.md b/README.md index eb774fa..19d0954 100644 --- a/README.md +++ b/README.md @@ -207,8 +207,16 @@ make -C build install INSTALL_ROOT=/tmp/pkg # 打包用,装到 /tmp/pkg/usr/lo ## 打包(安装包) -`.github/workflows/packages.yml` 是给 GitHub 镜像用的(Gitea 上不跑):推代码、打 tag、 -PR 或手动运行时编译,并打出下面这些安装包。 +`.github/workflows/packages.yml` 是给 GitHub 镜像用的:推代码、打 tag、PR 或手动运行时编译, +并打出下面这些安装包。 + +> **Gitea 也会读这个目录**:Gitea Actions 兼容 GitHub,默认同时扫描 `.gitea/workflows` 和 +> `.github/workflows`,光靠 YAML 没法让 Gitea 忽略它。要它不在 Gitea 跑,三选一: +> +> - 仓库 **设置 → 高级设置** 里取消「启用 Actions」:整个仓库的 Actions 都停,GitHub 不受影响 +> - 或 **Actions → 安装包 → 禁用工作流**:只停这一个(Gitea 1.22+) +> - 或服务器 `app.ini` 里设 `[actions] WORKFLOW_DIRS = .gitea/workflows`:Gitea 只读 +> `.gitea/workflows`,`.github/workflows` 就只对 GitHub 生效(需要支持该配置的版本) | 平台 | runner | 产物 | | --- | --- | --- |