fix: 修复 Gitea 发布工作流在 fork/镜像仓库中的兼容性问题 #1
Reference in New Issue
Block a user
Delete Branch "zhilv/lightOps:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
变更内容
本次修复主要围绕 Gitea Actions 发布流程在 fork / 镜像仓库中的兼容性问题展开。
工作流与仓库上下文
owner/repogitea-url、owner、repo,避免脚本回退到默认仓库配置git fetch --tags --forceRust 构建与工具链
cargorustup安装并使用stable工具链,兼容Cargo.lock v4rustup配置镜像下载源,避免直连static.rust-lang.org超时~/.cargo/config.toml,将 crates.io 切换到rsproxysparse registrycc-rs误寻找交叉编译器Release 发布
RELEASE_TOKENnode处理 JSON,兼容无python/python3环境main作为target_commitish,避免提交 SHA 在当前 Gitea 实例下返回 404解决的问题
修复了以下场景下的失败或异常:
Cargo.lock v4rustup/ Cargo 直连官方源超时导致工具链或依赖下载失败x86_64-linux-gnu-gcc