Skip to content

Commit aedc044

Browse files
author
robin
committed
Revert "chore(ci): remove obsolete TCB deploy workflow"
This reverts commit 2b55c26.
1 parent 2b55c26 commit aedc044

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

.github/workflows/deploy-tcb.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Publish root to TCB
2+
on:
3+
check_suite:
4+
types: [completed]
5+
push:
6+
branches:
7+
- next
8+
schedule:
9+
- cron: "0 21 * * *"
10+
11+
env:
12+
CI: true
13+
NODE_OPTIONS: --openssl-legacy-provider
14+
jobs:
15+
publish:
16+
name: Publish Docs to TCB
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
node-version: [18.x]
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Install pnpm
27+
uses: pnpm/action-setup@v4
28+
with:
29+
version: 9
30+
31+
- name: Use Node.js ${{ matrix.node-version }}
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: ${{ matrix.node-version }}
35+
cache: 'pnpm'
36+
37+
- run: pnpm start
38+
39+
- name: Build taro-ui
40+
run: pnpm run build:ui
41+
42+
- name: Build taro-ui-docs
43+
run: pnpm run build:doc
44+
45+
- name: Deploy static to Tencent CloudBase
46+
id: deployStatic
47+
if: ${{ secrets.TCB_SECRET_ID != '' }}
48+
uses: TencentCloudBase/cloudbase-action@v1.1.1
49+
with:
50+
secretId: ${{ secrets.TCB_SECRET_ID }}
51+
secretKey: ${{ secrets.TCB_SECRET_KEY }}
52+
envId: ${{ secrets.TCB_TARO_UI_ENV_ID }}
53+
staticSrcPath: packages/taro-ui-docs/dist

0 commit comments

Comments
 (0)