Skip to content

Commit 80e6c66

Browse files
committed
fix: cp dir flat
1 parent 343a7ba commit 80e6c66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy-playground-to-cdn.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
with:
134134
name: playground-dist
135135
path: ./packages/playground/dist/
136-
136+
137137
- name: Install obsutil
138138
run: |
139139
curl -o obsutil.tar.gz https://obs-community.obs.cn-north-1.myhuaweicloud.com/obsutil/current/obsutil_linux_amd64.tar.gz
@@ -147,9 +147,9 @@ jobs:
147147
-k=${{ env.HUAWEI_CLOUD_SK }} \
148148
-e=${{ env.HUAWEI_CLOUD_ENDPOINT }}
149149
# Upload to versioned path
150-
obsutil cp ./packages/playground/dist/ \
150+
obsutil cp ./packages/playground/dist \
151151
obs://${{ env.HUAWEI_CLOUD_BUCKET }}/${{ needs.build.outputs.obs-path }} \
152-
-r -f
152+
-r -f -flat
153153
154154
echo "Uploaded to: obs://${{ env.HUAWEI_CLOUD_BUCKET }}/${{ needs.build.outputs.obs-path }}"
155155
echo "CDN URL: https://res-static.opentiny.design/${{ needs.build.outputs.obs-path }}"

0 commit comments

Comments
 (0)