ci: deploy playground to cdn - #287
Conversation
WalkthroughA new GitHub Actions workflow was introduced that orchestrates building and deploying the playground application to a CDN via Huawei Cloud Object Storage. The workflow validates credentials, builds the playground with versioned metadata including Shanghai timestamps, and uploads artifacts to OBS with versioned and conditional latest-release paths. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📦 Package Previewpnpm add https://pkg.pr.new/opentiny/tiny-robot/@opentiny/tiny-robot@9bb172f pnpm add https://pkg.pr.new/opentiny/tiny-robot/@opentiny/tiny-robot-kit@9bb172f pnpm add https://pkg.pr.new/opentiny/tiny-robot/@opentiny/tiny-robot-svgs@9bb172f commit: 9bb172f |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.github/workflows/deploy-playground-to-cdn.yml:
- Around line 149-155: Replace the current unpinned download in the "Install
obsutil" step by pinning to a specific obsutil release (avoid /current/),
download both the tarball and the corresponding official SHA256 file, compute
the SHA256 of the downloaded tarball and compare it to the official value, and
abort the workflow with a clear error if the checksum does not match; update the
step that currently runs curl/tar/chmod/mv so it fetches the versioned URL and
checksum, performs the sha256 verification before extracting, and only proceeds
to chmod and sudo mv obsutil when the hash check succeeds.
🧹 Preview Cleaned UpThe preview deployment has been removed. |

playground单独部署到cdn,解决部分用户直接访问github page 可能不通的问题
验证:
部署地址:
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.