mirror of
https://github.com/laurent22/joplin.git
synced 2025-03-29 21:21:15 +02:00
com
This commit is contained in:
parent
a1fd1df00b
commit
560b14b968
@ -2,26 +2,35 @@
|
||||
|
||||
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.
|
||||
# -----------------------------------------------------------------------------
|
||||
# ------------------------------------------------------------------------------
|
||||
# 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
|
||||
|
||||
# Will fail if there's any local change in the repo, which is what we want
|
||||
git pull --rebase
|
||||
|
||||
npm install
|
||||
|
||||
# Clean up npm's mess
|
||||
git reset --hard
|
||||
|
||||
npm run updateMarkdownDoc
|
||||
|
||||
# We commit and push the change. It will be a noop if nothing was actually
|
||||
# changed
|
||||
|
||||
git add -A
|
||||
|
||||
git commit -m "Doc: Updated Markdown files
|
||||
@ -30,9 +39,9 @@ Auto-updated using $SCRIPT_NAME"
|
||||
|
||||
git push
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# ------------------------------------------------------------------------------
|
||||
# Build and deploy the website
|
||||
# -----------------------------------------------------------------------------
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
cd "$JOPLIN_WEBSITE_ROOT_DIR"
|
||||
git pull --rebase
|
||||
|
Loading…
x
Reference in New Issue
Block a user