Skip to content

feat: add deploy action - #54

Merged
rhlin merged 33 commits into
mainfrom
lhs/deploy_playground
Feb 13, 2026
Merged

feat: add deploy action#54
rhlin merged 33 commits into
mainfrom
lhs/deploy_playground

Conversation

@lhuans

@lhuans lhuans commented Feb 12, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Chores
    • Added an automated CI/CD workflow to build and publish the GenUI SDK Playground to Huawei OBS. It runs on version tags or manual dispatch (optional version), builds the site, produces an archived build artifact, and uploads a versioned site to cloud storage.
    • Workflow exposes the resolved version for downstream steps and retains build artifacts for deployment.

@coderabbitai

coderabbitai Bot commented Feb 12, 2026

Copy link
Copy Markdown

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Adds 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

Cohort / File(s) Summary
GitHub Actions Deployment Workflow
.github/workflows/deploy-obs-playground.yml
New workflow triggered on v* tag pushes and manual dispatch (optional version input); checks out repo and submodules, sets up pnpm, installs deps, resolves version (input or sites/playground/web/package.json), builds with PLAYGROUND_BASE=/genui-sdk-playground/, copies dist/index.htmldist/404.html, uploads dist/ as dist-artifact, and deploys by downloading the artifact, installing/configuring obsutil with AK/SK/endpoint from secrets, and copying files to genui-sdk-playground/<version>/ in the OBS bucket. Outputs the resolved version for downstream steps.

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)
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 I nibbled code at dawn’s first light,

Built a playground, packed it tight,
Tagged a version, sent it high,
To OBS clouds it learned to fly,
I hopped — deployment felt just right!


Note

🎁 Summarized by CodeRabbit Free

Your 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 @coderabbitai help to get the list of available commands and usage tips.

@lhuans lhuans changed the title feat: add deploy action [WIP]feat: add deploy action Feb 12, 2026
@yy-wow
yy-wow force-pushed the lhs/deploy_playground branch from fb76d80 to 0935cb4 Compare February 12, 2026 06:36
Comment thread .github/workflows/deploy-obs-playground.yml Outdated
…d utilizing environment variables for backend and assets URLs
Comment thread .github/workflows/deploy-obs-playground.yml Outdated
…and streamline environment variable handling
@yy-wow yy-wow changed the title [WIP]feat: add deploy action feat: add deploy action Feb 13, 2026
Comment thread sites/playground/web/vite.config.ts Outdated
Comment thread package.json
… URL and remove redundant environment variable
@rhlin
rhlin merged commit f92e648 into main Feb 13, 2026
2 checks passed
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.

3 participants