File tree 4 files changed +29
-8
lines changed
4 files changed +29
-8
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ jobs:
25
25
uses : actions/checkout@v3
26
26
27
27
# 下载二进制文件
28
- - name : Download Binary Files
29
- run : |
30
- set -ex
31
- pwd
32
- bash ./scripts/base/install_bin.sh
28
+ # - name: Download Binary Files
29
+ # run: |
30
+ # set -ex
31
+ # pwd
32
+ # bash ./scripts/base/install_bin.sh
33
33
34
34
- name : Setup Node 16
35
35
uses : actions/setup-node@v3
Original file line number Diff line number Diff line change 1
1
node_modules
2
2
.temp
3
3
.cache
4
- dist
4
+ dist
5
+ tca_lib *
6
+ images
Original file line number Diff line number Diff line change 9
9
"type" : " module" ,
10
10
"license" : " MIT" ,
11
11
"scripts" : {
12
- "dev" : " vuepress dev" ,
12
+ "dev" : " bash ./sync_images.sh & vuepress dev" ,
13
13
"build:comment" : " echo '构建帮助文档,默认base前缀为document,可根据部署需要进行相应调整'" ,
14
- "build" : " BASE=${BASE:-CodeAnalysis} vuepress build -d ./dist"
14
+ "build" : " bash ./sync_images.sh & BASE=${BASE:-CodeAnalysis} vuepress build -d ./dist"
15
15
},
16
16
"devDependencies" : {
17
17
"@vuepress/plugin-search" : " 2.0.0-beta.63" ,
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ url=${LIB_GITHUB_URL:- " https://github.com/TCATools/tca_lib/releases/download/v20241015.1/tca_lib-v1.8.zip" }
4
+
5
+ filename=$( basename " $url " )
6
+ dirname=${filename% .* }
7
+
8
+ lib_image_path=" ${dirname} /tca_lib/doc/images"
9
+ image_path=" images"
10
+
11
+ if [[ ! -d $image_path ]]; then
12
+ if [[ ! -d $lib_image_path ]]; then
13
+ if [[ ! -f $filename ]]; then
14
+ wget $url
15
+ fi
16
+ unzip $filename -d $dirname
17
+ fi
18
+ cp -r $lib_image_path $image_path
19
+ fi
You can’t perform that action at this time.
0 commit comments