docs: v0.12.5 —— 说明 Gitea 也会跑 .github/workflows,并给出关闭方式
安装包 / Linux aarch64 (push) Canceled after 0s
安装包 / Linux x86_64 (push) Canceled after 0s
安装包 / Windows x86_64 (push) Canceled after 0s
安装包 / macOS arm64 (Apple Silicon) (push) Canceled after 0s
安装包 / macOS x86_64 (Intel) (push) Canceled after 0s
安装包 / 发布到 Release (push) Canceled after 0s
安装包 / Linux aarch64 (push) Canceled after 0s
安装包 / Linux x86_64 (push) Canceled after 0s
安装包 / Windows x86_64 (push) Canceled after 0s
安装包 / macOS arm64 (Apple Silicon) (push) Canceled after 0s
安装包 / macOS x86_64 (Intel) (push) Canceled after 0s
安装包 / 发布到 Release (push) Canceled after 0s
Gitea Actions 兼容 GitHub,默认同时读 .gitea/workflows 和 .github/workflows, 光靠 YAML 没法让 Gitea 忽略。README 里补了三种关闭方式: 仓库取消 Enable Actions、Actions 页 Disable Workflow、服务端 WORKFLOW_DIRS。
This commit is contained in:
@@ -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(未签名,不是公证版)
|
||||
|
||||
@@ -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 | 产物 |
|
||||
| --- | --- | --- |
|
||||
|
||||
Reference in New Issue
Block a user