Skip to content

Commit aa36041

Browse files
committed
workflow: support upload to cos
1 parent d9052ef commit aa36041

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+19
-0
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,22 @@ jobs:
6969
asset_path: build/agent-ui.zip
7070
asset_name: agent-ui-${{ github.ref_name }}.zip
7171
asset_content_type: application/zip
72+
# 安装腾讯云 COSCMD 工具
73+
- name: Install COSCMD
74+
run: |
75+
pip install coscmd
76+
# 配置腾讯云 COS 认证信息
77+
78+
- name: Setup COS credentials
79+
env:
80+
TENCENT_SECRET_ID: ${{ secrets.TENCENT_SECRET_ID }}
81+
TENCENT_SECRET_KEY: ${{ secrets.TENCENT_SECRET_KEY }}
82+
run: |
83+
coscmd config -a $TENCENT_SECRET_ID -s $TENCENT_SECRET_KEY -b 6c75-luke-agent-dev-7g1nc8tqc2ab76af -r ap-shanghai
84+
# 上传示例小程序到 COS
85+
- name: Upload miniprogram example to COS
86+
run: |
87+
cd apps/minprogram-agent-ui
88+
zip -r minprogram-agent-ui.zip .
89+
coscmd upload minprogram-agent-ui.zip /release/minprogram-agent-ui.zip
90+
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/miniprogram-agent-ui/miniprogram/components/agent-ui/chatFile/index.js renamed to apps/miniprogram-agent-ui/miniprogram/components/agent-ui/chatFile/index.js

File renamed without changes.

examples/miniprogram-agent-ui/miniprogram/components/agent-ui/chatFile/index.json renamed to apps/miniprogram-agent-ui/miniprogram/components/agent-ui/chatFile/index.json

File renamed without changes.

examples/miniprogram-agent-ui/miniprogram/components/agent-ui/chatFile/index.wxml renamed to apps/miniprogram-agent-ui/miniprogram/components/agent-ui/chatFile/index.wxml

File renamed without changes.

examples/miniprogram-agent-ui/miniprogram/components/agent-ui/chatFile/index.wxss renamed to apps/miniprogram-agent-ui/miniprogram/components/agent-ui/chatFile/index.wxss

File renamed without changes.

examples/miniprogram-agent-ui/miniprogram/components/agent-ui/collapse/index.js renamed to apps/miniprogram-agent-ui/miniprogram/components/agent-ui/collapse/index.js

File renamed without changes.

0 commit comments

Comments
 (0)