Skip to content

Commit bc2b239

Browse files
committed
fix: use obs url to fix sketch download (#72)
1 parent 754de90 commit bc2b239

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/deploy-github.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
run: pnpm build:common
5555
env:
5656
VITE_CONTEXT: /opentiny.design/
57+
VITE_BASE: /opentiny.design/
5758
- name: Build home
5859
run: pnpm build
5960
env:

.github/workflows/deploy-obs.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ jobs:
6363
run: |
6464
pnpm -F opentiny-design-common i --no-frozen-lockfile
6565
pnpm -F opentiny-design-home i --no-frozen-lockfile
66-
- name: Build common
67-
run: pnpm build:common
68-
env:
69-
VITE_CONTEXT: /
7066
- name: Get home version
7167
id: ver
7268
run: |
@@ -78,6 +74,11 @@ jobs:
7874
fi
7975
echo "Home version: $VERSION"
8076
echo "value=$VERSION" >> $GITHUB_OUTPUT
77+
- name: Build common
78+
run: pnpm build:common
79+
env:
80+
VITE_CONTEXT: /
81+
VITE_BASE: //res-static.opentiny.design/tinyui-design/${{ steps.ver.outputs.value }}/home/
8182
- name: Build home
8283
run: pnpm build
8384
env:

packages/common/src/config/header.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const menuItems = [
197197
github: '',
198198
onClick: (event: MouseEvent) => {
199199
event.preventDefault();
200-
downloadFile(`${import.meta.env.VITE_CONTEXT}opentiny-design/downloadFile/TinyVue3.0_UI.KIT_202508.sketch`, 'TinyVue3.0_UI.KIT_202508.sketch')
200+
downloadFile(`${import.meta.env.VITE_BASE}opentiny-design/downloadFile/TinyVue3.0_UI.KIT_202508.sketch`, 'TinyVue3.0_UI.KIT_202508.sketch')
201201
}
202202
}
203203
]

0 commit comments

Comments
 (0)