Skip to content

feat: trigger build on release publish and upload assets automatically#1

Merged
overtrue merged 6 commits intomainfrom
copilot/auto-build-version-on-release
Nov 26, 2025
Merged

feat: trigger build on release publish and upload assets automatically#1
overtrue merged 6 commits intomainfrom
copilot/auto-build-version-on-release

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 26, 2025

  • 同时支持 release 和 tags 触发构建
  • 格式化构建产物文件名为 rustfs-launcher-{platform}-{arch}-{version} 格式
  • 同时生成 *-latest.* 文件用于获取最新版本
  • 上传产物到阿里云 OSS (oss://rustfs-artifacts/artifacts/rustfs-launcher/release/)
  • 上传产物到 GitHub Release Assets
  • 更新文档说明新的工作流和产物格式
  • 添加显式权限设置
  • 改进错误处理
Original prompt

release 的时候自动构建版本,并更新产物到 release assets


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits November 26, 2025 11:38
…omatically

Co-authored-by: overtrue <1472352+overtrue@users.noreply.github.com>
Co-authored-by: overtrue <1472352+overtrue@users.noreply.github.com>
Co-authored-by: overtrue <1472352+overtrue@users.noreply.github.com>
Copilot AI changed the title [WIP] Add automatic version build and asset update on release feat: trigger build on release publish and upload assets automatically Nov 26, 2025
Copilot AI requested a review from overtrue November 26, 2025 11:42
@overtrue
Copy link
Copy Markdown
Contributor

@copilot

  1. 不管在 release 或者 tags 都应该触发
  2. 需要格式化构建产物文件名 rustfs-macos-aarch64-v0.0.1 然后上传到 oss, 参考:https://github.com/rustfs/rustfs.com/blob/main/.github/workflows/deploy.yml#L41-L66, OSS_BUCKET=rustfs-artifacts, path-prefix=/artifacts/rustfs-launcher/release/
  3. 参考 https://github.com/rustfs/rustfs/blob/main/.github/workflows/build.yml#L669-L747 把产物同时加到 release 的 assets

Copilot AI and others added 2 commits November 26, 2025 11:52
…pload to OSS and release assets

Co-authored-by: overtrue <1472352+overtrue@users.noreply.github.com>
… error handling

Co-authored-by: overtrue <1472352+overtrue@users.noreply.github.com>
@overtrue overtrue marked this pull request as ready for review November 26, 2025 11:54
@overtrue overtrue merged commit 7d3b06a into main Nov 26, 2025
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Nov 26, 2025

@copilot

  1. 不管在 release 或者 tags 都应该触发
  2. 需要格式化构建产物文件名 rustfs-macos-aarch64-v0.0.1 然后上传到 oss, 参考:https://github.com/rustfs/rustfs.com/bl...

已完成所有修改 (3286a42):

  1. ✅ 触发条件:同时支持 push tags: '*.*.*'release: types: [published]
  2. ✅ 产物命名格式:rustfs-launcher-{platform}-{arch}-{version} (如 rustfs-launcher-macos-aarch64-v0.1.0.dmg),同时生成 *-latest.* 文件
  3. ✅ OSS 上传:oss://rustfs-artifacts/artifacts/rustfs-launcher/release/
  4. ✅ Release Assets:同时上传到 GitHub Release

@overtrue overtrue deleted the copilot/auto-build-version-on-release branch November 26, 2025 12:07
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.

2 participants