2018-05-02 15:31:17 +01:00
|
|
|
#!/bin/bash
|
2020-01-21 09:42:27 +00:00
|
|
|
set -e
|
|
|
|
|
2018-05-02 15:31:17 +01:00
|
|
|
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
2020-01-21 09:42:27 +00:00
|
|
|
echo "---------------------------------------------------"
|
|
|
|
echo "Rebuild API doc..."
|
|
|
|
echo "---------------------------------------------------"
|
2020-02-21 12:15:06 +00:00
|
|
|
cd "$ROOT_DIR/../CliClient"
|
2020-03-08 09:05:52 +00:00
|
|
|
API_DOC="$(npm run --silent start -- apidoc)"
|
|
|
|
echo "$API_DOC" > "$ROOT_DIR/../readme/api.md"
|
2020-02-21 12:15:06 +00:00
|
|
|
cd "$ROOT_DIR"
|
2020-01-21 09:42:27 +00:00
|
|
|
|
|
|
|
echo "---------------------------------------------------"
|
|
|
|
echo "$ROOT_DIR/update-readme-download.js..."
|
|
|
|
echo "---------------------------------------------------"
|
|
|
|
node "$ROOT_DIR/update-readme-download.js"
|
|
|
|
|
|
|
|
echo "---------------------------------------------------"
|
|
|
|
echo "$ROOT_DIR/build-release-stats.js..."
|
|
|
|
echo "---------------------------------------------------"
|
|
|
|
node "$ROOT_DIR/build-release-stats.js"
|
|
|
|
|
|
|
|
echo "---------------------------------------------------"
|
|
|
|
echo "$ROOT_DIR/build-welcome.js..."
|
|
|
|
echo "---------------------------------------------------"
|
|
|
|
node "$ROOT_DIR/build-welcome.js"
|
|
|
|
|
|
|
|
echo "---------------------------------------------------"
|
|
|
|
echo "$ROOT_DIR/build-website.js..."
|
|
|
|
echo "---------------------------------------------------"
|
|
|
|
node "$ROOT_DIR/build-website.js"
|
|
|
|
|
|
|
|
echo "---------------------------------------------------"
|
|
|
|
echo "Commit changes..."
|
|
|
|
echo "---------------------------------------------------"
|
|
|
|
git add -A && git commit -m "Update website" && git pull && git push
|