Skip to content

feat: add GitHub Actions CI/CD workflow (#42)#49

Merged
SonicBotMan merged 2 commits into
mainfrom
feat/issue-42-cicd-workflow
Mar 15, 2026
Merged

feat: add GitHub Actions CI/CD workflow (#42)#49
SonicBotMan merged 2 commits into
mainfrom
feat/issue-42-cicd-workflow

Conversation

@SonicBotMan

Copy link
Copy Markdown
Owner

✨ New Feature

Fixes #42

Problem

目前仓库完全依赖手动构建和发布 Release,导致:

  • 每次发版需要人工收集依赖
  • 无法保证每个 Release 的可重现性
  • 无 CI 验证,脚本改动后没有自动回归测试

Solution

添加完整的 GitHub Actions CI/CD workflow。

Features

1. 自动触发

  • Tag 触发: 推送 v* 标签自动构建和发布
  • 手动触发: 支持 workflow_dispatch 用于测试

2. 多平台构建

  • Windows: 构建 Windows 便携版(.zip)
  • Linux: 构建 Linux 便携版(.tar.gz)

3. 构建流程

  1. 下载 Node.js 二进制文件(从 npmmirror.com)
  2. 使用 npm 安装 OpenClaw
  3. 打包所有脚本和文档
  4. 创建 GitHub Release 并上传资产

4. Release Notes

  • 自动生成
  • 包含快速开始指南
  • 包含系统要求

Usage

发布新版本

# 创建并推送标签
git tag v5.0.2
git push origin v5.0.2

# GitHub Actions 自动构建并发布

测试构建

  1. 进入 Actions 页面
  2. 选择 "Build & Release Portable Package"
  3. 点击 "Run workflow"
  4. 输入版本号(可选)
  5. 查看构建结果

Testing

  • 测试 tag 触发构建
  • 测试手动触发
  • 验证 Windows 包
  • 验证 Linux 包
  • 检查 Release Notes

Priority

🟡 P2 Medium - Engineering improvement for maintainability


This PR was created automatically by AI assistant

SonicBotMan added 2 commits March 15, 2026 05:31
- Clarify that no Base64-encoded PowerShell is used
- Explain why security software may still alert
- Provide solutions for enterprise users
- Emphasize all scripts are plaintext and auditable

Related #41
Features:
- Automatic build on version tags (v*)
- Manual dispatch for testing
- Windows portable package build
- Linux portable package build
- Automatic release creation with release notes

Build process:
1. Download Node.js from npmmirror.com
2. Install OpenClaw via npm
3. Package with all scripts and docs
4. Create GitHub Release with assets

Fixes #42
@SonicBotMan SonicBotMan merged commit fecbb8e into main Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[工程化] 缺少 GitHub Actions CI/CD 自动构建并发布 Release 包的流水线

1 participant