mirror of
https://github.com/laurent22/joplin.git
synced 2025-03-29 21:21:15 +02:00
script
This commit is contained in:
parent
9c31a967b3
commit
6e735ce32a
@ -17,7 +17,7 @@
|
||||
"buildSettingJsonSchema": "npm start --prefix=packages/app-cli -- settingschema ../../../joplin-website/docs/schema/settings.json",
|
||||
"buildTranslations": "npm run tsc && node packages/tools/build-translation.js",
|
||||
"buildTranslationsNoTsc": "node packages/tools/build-translation.js",
|
||||
"buildWebsite": "npm run buildApiDoc && node ./packages/tools/website/build.js && npm run buildPluginDoc && npm run buildSettingJsonSchema",
|
||||
"buildWebsite": "node ./packages/tools/website/build.js && npm run buildPluginDoc && npm run buildSettingJsonSchema",
|
||||
"circularDependencyCheck": "madge --warning --circular --extensions js ./",
|
||||
"clean": "lerna clean -y && lerna run clean",
|
||||
"dependencyTree": "madge",
|
||||
|
46
packages/tools/release-website.sh
Normal file
46
packages/tools/release-website.sh
Normal file
@ -0,0 +1,46 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Setup environment
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
SCRIPT_NAME=`basename "$0"`
|
||||
JOPLIN_ROOT_DIR="$SCRIPT_DIR/../.."
|
||||
JOPLIN_WEBSITE_ROOT_DIR="$JOPLIN_ROOT_DIR/../joplin-website"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Update the Markdown files inside the Joplin directory. This is for example
|
||||
# the download links README.md or the desktop app changelog.
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
cd "$JOPLIN_ROOT_DIR"
|
||||
git pull --rebase
|
||||
npm install
|
||||
git reset --hard
|
||||
|
||||
npm run updateMarkdownDoc
|
||||
git add -A
|
||||
|
||||
git commit -m "Doc: Updated Markdown files
|
||||
|
||||
Auto-updated using $SCRIPT_NAME"
|
||||
|
||||
git push
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Build and deploy the website
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
cd "$JOPLIN_WEBSITE_ROOT_DIR"
|
||||
git pull --rebase
|
||||
|
||||
cd "$JOPLIN_ROOT_DIR"
|
||||
npm run buildWebsite
|
||||
|
||||
cd "$JOPLIN_WEBSITE_ROOT_DIR"
|
||||
git add -A
|
||||
git commit -m "Updated website"
|
||||
git push
|
Loading…
x
Reference in New Issue
Block a user