mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 19:08:45 +08:00
27 lines
436 B
Bash
Executable File
27 lines
436 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
|
|
echo "building"
|
|
node ./scripts/generate-search-data.js
|
|
|
|
npm run build-schemas
|
|
|
|
./node_modules/.bin/fis3 release gh-pages -c
|
|
|
|
# 拷贝一份兼容之前的访问路径
|
|
cp -r gh-pages/zh-CN/docs/* gh-pages/docs/
|
|
|
|
cp ./schema.json ./gh-pages
|
|
|
|
cp -r mock gh-pages/
|
|
|
|
sh build.sh
|
|
|
|
tar -zcvf sdk.tar.gz sdk
|
|
|
|
mv sdk.tar.gz gh-pages/
|
|
|
|
# 加这个 github page 就不会忽略下划线开头的文件
|
|
touch gh-pages/.nojekyll
|