2019-06-05 10:45:36 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
2020-08-21 16:19:26 +08:00
|
|
|
echo "building"
|
2020-09-11 17:30:00 +08:00
|
|
|
node ./scripts/generate-search-data.js
|
2020-08-21 11:51:35 +08:00
|
|
|
|
2020-09-16 23:41:51 +08:00
|
|
|
npm run build-schemas
|
|
|
|
|
2021-02-02 14:32:09 +08:00
|
|
|
./node_modules/.bin/fis3 release gh-pages -c
|
2020-08-21 16:19:26 +08:00
|
|
|
|
2021-01-04 18:27:09 +08:00
|
|
|
# 拷贝一份兼容之前的访问路径
|
|
|
|
cp -r gh-pages/zh-CN/docs/* gh-pages/docs/
|
|
|
|
|
2020-09-16 23:41:51 +08:00
|
|
|
cp ./schema.json ./gh-pages
|
|
|
|
|
2021-08-16 16:58:05 +08:00
|
|
|
cp -r mock gh-pages/
|
|
|
|
|
2021-01-14 11:03:11 +08:00
|
|
|
sh build.sh
|
|
|
|
|
|
|
|
tar -zcvf sdk.tar.gz sdk
|
|
|
|
|
|
|
|
mv sdk.tar.gz gh-pages/
|
|
|
|
|
2021-01-20 11:07:04 +08:00
|
|
|
# 加这个 github page 就不会忽略下划线开头的文件
|
|
|
|
touch gh-pages/.nojekyll
|