@@ -30,18 +30,26 @@ files=(
30
30
style.css
31
31
)
32
32
33
- echo ' Copying built assets from ./playground to ./playground-dist'
33
+ if [[ " $SKIP_BUILD_WASM " != " " ]]; then
34
+ files=(" ${files[@]/ main.wasm} " )
35
+ fi
36
+
37
+ echo " Copying built assets from ./playground to ./playground-dist: " " ${files[@]} "
34
38
for f in " ${files[@]} " ; do
35
39
cp -R " ./playground/${f} " " ./playground-dist/${f} "
36
40
done
37
41
38
- echo ' Applying wasm-opt to ./playground-dist/main.wasm'
39
- wasm-opt -O -o ./playground-dist/opt.wasm ./playground-dist/main.wasm --enable-bulk-memory
40
- mv ./playground-dist/opt.wasm ./playground-dist/main.wasm
42
+ if [[ " $SKIP_BUILD_WASM " == " " ]]; then
43
+ echo ' Applying wasm-opt to ./playground-dist/main.wasm'
44
+ wasm-opt -O -o ./playground-dist/opt.wasm ./playground-dist/main.wasm --enable-bulk-memory
45
+ mv ./playground-dist/opt.wasm ./playground-dist/main.wasm
46
+ else
47
+ echo ' Skipped applying wasm-opt because SKIP_BUILD_WASM environment variable is set'
48
+ fi
41
49
42
50
echo ' Generating and copying manual'
43
51
make ./man/actionlint.1.html
44
- cp ./man/actionlint.1.html ./playground-dist/usage .html
52
+ cp ./man/actionlint.1.html ./playground-dist/man .html
45
53
46
54
echo ' Switching to gh-pages branch'
47
55
git checkout gh-pages
@@ -59,8 +67,8 @@ for f in "${files[@]}"; do
59
67
done
60
68
61
69
echo ' Adding manual'
62
- cp ./playground-dist/usage .html ./usage .html
63
- git add ./usage .html
70
+ cp ./playground-dist/man .html ./man .html
71
+ git add ./man .html
64
72
65
73
echo ' Making commit for new deploy'
66
74
git commit -m " deploy from ${sha} "
0 commit comments