feat: add deploy action - #54
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughAdds a GitHub Actions workflow that builds the GenUI SDK Playground, resolves a version (tag, input, or package.json), uploads the build artifact, and deploys the static site to a Huawei OBS bucket under a versioned path. Changes
Sequence Diagram(s)sequenceDiagram
participant GitHub as "GitHub Actions"
participant Runner as "CI Runner"
participant Artifact as "Actions Artifact Storage"
participant Obsutil as "obsutil (on Runner)"
participant HuaweiOBS as "Huawei OBS Bucket"
GitHub->>Runner: trigger on tag or manual dispatch (optional version)
Runner->>Runner: checkout repo & submodules, setup pnpm, install deps
Runner->>Runner: resolve version (input or package.json)
Runner->>Runner: build playground (PLAYGROUND_BASE=/genui-sdk-playground/)
Runner->>Runner: copy dist/index.html -> dist/404.html
Runner->>Artifact: upload dist/ as dist-artifact
GitHub->>Runner: start deploy job
Runner->>Artifact: download dist-artifact
Runner->>Obsutil: install & configure with AK/SK/endpoint
Runner->>Obsutil: obsutil cp dist/ -> genui-sdk-playground/<version>/
Obsutil->>HuaweiOBS: upload files to bucket
HuaweiOBS-->>Runner: confirm upload
Runner-->>GitHub: set outputs (resolved version)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
fb76d80 to
0935cb4
Compare
…r dynamic configuration
…n deploy workflow
…d utilizing environment variables for backend and assets URLs
…and streamline environment variable handling
…t from GitHub event
…nd improve environment variable usage
4fd9560 to
cceccac
Compare
… URL and remove redundant environment variable
Summary by CodeRabbit