Skip to content

Commit

Permalink
[action]Fix async demo
Browse files Browse the repository at this point in the history
  • Loading branch information
dufu1991 committed Sep 25, 2023
1 parent b0a9c07 commit c1f861d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sync-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
# 将 demo/src/routes/+page.svelte 内的 "'../../../packages/stdf/components'" 替换为 "'stdf/lang/en_US'"
# 将 demo/src/routes/en_US/**/+page.svelte 内的 "'../../../../../packages/stdf/components'" 替换为 "'stdf'"
# 将 demo/src/routes/zh_CN/**/+page.svelte 内的 "'../../../../../packages/stdf/components'" 替换为 "'stdf'"
# 将 demo/tailwind.config.js 内的 "'../packages/stdf/**/*.svelte'" 替换为 "./node_modules/stdf/**/*.svelte'"
# 将 demo/tailwind.config.js 内的 "'../packages/stdf/**/*.svelte'" 替换为 "./node_modules/stdf/**/*.svelte'",注意其中特殊符号的转义
# 将 demo 目录下的所有文件提交到本地仓库,提交信息为 Github Actions auto commit: update demo from stdf.
- name: Init stdf demo
run: |
Expand All @@ -64,7 +64,7 @@ jobs:
sed -i 's#../../../packages/stdf/components#stdf#' src/routes/+page.svelte
sed -i 's#../../../../../packages/stdf/components#stdf#' src/routes/en_US/**/+page.svelte
sed -i 's#../../../../../packages/stdf/components#stdf#' src/routes/zh_CN/**/+page.svelte
sed -i 's#../packages/stdf/**/*.svelte#./node_modules/stdf/**/*.svelte#' tailwind.config.js
sed -i 's|'\''../packages/stdf/\*\*/\*.svelte'\''|'\''.\/node_modules\/stdf\/\*\*\/\*.svelte'\''|g' tailwind.config.js
git add .
git commit -m "Github Actions auto commit: update demo from stdf."
Expand Down

0 comments on commit c1f861d

Please sign in to comment.