mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
* Migrate workflows to Blacksmith * Update .github/workflows/preview-build.yml Signed-off-by: thinkasany <480968828@qq.com> * preview-build.yml use runs-on: ubuntu-latest (#56367) * Initial plan * fix: add named exports for ColorPalettes and ColorPaletteToolDark to fix SSR compatibility Co-authored-by: thinkasany <117748716+thinkasany@users.noreply.github.com> * test: preview-build use ubuntu-latest --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: thinkasany <117748716+thinkasany@users.noreply.github.com> Co-authored-by: thinkasany <480968828@qq.com> --------- Signed-off-by: thinkasany <480968828@qq.com> Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com> Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: thinkasany <480968828@qq.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: thinkasany <117748716+thinkasany@users.noreply.github.com>
35 lines
758 B
YAML
35 lines
758 B
YAML
name: Publish Any Commit
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
|
|
- run: corepack enable
|
|
- uses: utooland/setup-utoo@v1
|
|
|
|
- name: Install dependencies
|
|
run: ut
|
|
|
|
- name: Build
|
|
run: ut build
|
|
|
|
# ========== Prepare examples ==========
|
|
- name: Clear examples
|
|
run: rm -rf examples
|
|
|
|
- name: Clone examples
|
|
uses: actions/checkout@v6
|
|
with:
|
|
repository: ant-design/ant-design-examples
|
|
path: examples
|
|
|
|
- name: Modify examples
|
|
run: utx tsx scripts/prepare-examples.ts
|
|
|
|
- run: utx pkg-pr-new publish --template './examples/examples/*'
|