Banghao Chi
|
de2c637f4f
|
ci(release): add deploy into paths-ignore (#148)
* ci(release): add paths-ignore to avoid release on non-code changes
* ci(release): add deploy into paths-ignore
|
2025-09-24 12:14:21 +08:00 |
|
Banghao Chi
|
e7d7d02a55
|
ci(release): add paths-ignore to avoid release on non-code changes (#132)
|
2025-09-22 23:54:33 +08:00 |
|
zy
|
fe3b93f7b3
|
fix: 修复 GitHub Actions release workflow 权限问题 (#119)
将触发事件从 pull_request 改为 push,解决来自 fork 的 PR 合并时
因权限受限导致的 403 错误。
- 触发条件:从 pull_request(closed) 改为 push to main
- 条件判断:相应调整为 push 事件的判断逻辑
这样可以确保 workflow 在代码真正合并到 main 分支后才运行,
此时有完整的 contents:write 权限来创建 release。
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <noreply@anthropic.com>
|
2025-09-20 00:37:28 +08:00 |
|
zy
|
61dde42c25
|
修复 Linux GLIBC 依赖问题并添加压缩包发布 (#113)
* fix: 禁用 CGO 以解决 Linux 系统 GLIBC 版本依赖问题
- 在所有平台的构建命令中添加 CGO_ENABLED=0
- 生成静态链接的二进制文件,不依赖系统 GLIBC
- 解决 Ubuntu 20.04 等较旧系统无法运行的问题
* feat: 将发布文件打包成压缩包
- 添加打包步骤,将二进制文件压缩成 tar.gz (Unix) 或 zip (Windows)
- 每个压缩包包含主程序和登录工具
- 减小下载体积,方便用户使用
- 更新 Release 说明文档
|
2025-09-19 02:19:35 +08:00 |
|
zy
|
3b8abfeafc
|
refactor: 优化发布流程 - PR 合并时触发,自动清理旧版本
主要改进:
- 改为 PR 合并到 main 时触发(不是每次 push)
- 自动删除超过 10 个的旧 Release,保持发布历史整洁
- 移除 prerelease 标记,所有自动构建都是正式 Release
- 恢复使用 v 前缀的版本号格式
- 清理了现有的 Draft 状态 Release
工作流程:
1. PR 合并到 main 分支时自动构建并发布
2. 自动清理,只保留最近 10 个 Release
3. 手动触发 tag-release.yml 发布语义化版本
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-09-18 23:19:00 +08:00 |
|
zy
|
4c4b9cb47a
|
fix: 恢复自动构建的 Release 功能,但不创建永久 tag
- 保留每次 push 到 main 时自动创建 Release
- 使用基于时间戳的命名(Build-年.月.日.时分-commit)
- 标记为预发布版本,用于测试
- 正式版本通过手动触发 tag-release.yml 发布
这样既保留了自动构建的 Release 供测试使用,又避免了 tag 膨胀问题
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-09-18 23:08:23 +08:00 |
|
zy
|
c8042d0822
|
refactor: 改进发布策略,将自动发布改为手动触发
- 修改 release.yml 为仅构建不打 tag,构建产物保存为 artifacts
- 新增 tag-release.yml 用于手动触发发布和打 tag
- 删除所有历史自动生成的 tags
- 采用更合理的版本管理策略,避免版本号膨胀
现在的工作流:
1. push to main 时自动构建(不打 tag)
2. 需要发布时手动触发 Tag and Release workflow
3. 手动输入语义化版本号(如 v1.0.0)和发布说明
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-09-18 22:41:58 +08:00 |
|
zy
|
c64534e90e
|
fix: 添加 GitHub Actions 写入权限配置 (#99)
- 添加 permissions: contents: write 配置
- 解决 403 权限错误问题
- 允许 GitHub Actions 创建 releases 和上传文件
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <noreply@anthropic.com>
|
2025-09-17 22:11:59 +08:00 |
|
zy
|
517193b317
|
fix: 修复 GitHub Actions Release 权限问题
- 替换 actions/create-release@v1 为 softprops/action-gh-release@v1
- 使用新的 action 同时处理 release 创建和文件上传
- 移除重复的文件上传步骤
- 解决 "Resource not accessible by integration" 错误
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-09-17 22:04:29 +08:00 |
|
zy
|
f12165130e
|
feat: 添加登录工具的多平台构建支持
- GitHub Actions 现在也会构建登录工具的二进制文件
- 支持 4 个平台:macOS ARM64/Intel, Windows x64, Linux x64
- 更新 Release 说明,包含登录工具下载链接
- 更新 README 文档,提供完整的二进制使用流程
- 用户现在可以完全无需 Go 环境使用项目
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-09-17 01:49:01 +08:00 |
|
zy
|
fcde987273
|
feat: 增加 GitHub Actions 多平台构建和 Release 自动化
- 添加 GitHub Actions 工作流,支持多平台构建:
- macOS ARM64 (Apple Silicon)
- macOS Intel (AMD64)
- Windows x64
- Linux x64
- 支持自动触发(推送到 main 分支且包含 Go 代码修改)
- 支持手动触发
- 更新 README 文档,添加二进制文件下载说明
- 添加浏览器自动下载提示
- 格式化所有 Go 源码文件
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-09-17 01:42:39 +08:00 |
|