1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00
joplin/Tools/build-all.sh

37 lines
1.3 KiB
Bash
Raw Normal View History

2018-05-02 16:31:17 +02:00
#!/bin/bash
2020-01-21 11:42:27 +02:00
set -e
2018-05-02 16:31:17 +02:00
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2020-01-21 11:42:27 +02:00
echo "---------------------------------------------------"
echo "Rebuild API doc..."
echo "---------------------------------------------------"
cd "$ROOT_DIR/../CliClient"
2020-03-08 11:05:52 +02:00
API_DOC="$(npm run --silent start -- apidoc)"
echo "$API_DOC" > "$ROOT_DIR/../readme/api.md"
cd "$ROOT_DIR"
2020-01-21 11:42:27 +02: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