From 7d64ced5598dfb212c309ba9c89940f0c8a0c493 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Mon, 24 Jun 2024 13:03:12 +0400 Subject: [PATCH] Up docs deploy script --- docs/deploy.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/deploy.sh b/docs/deploy.sh index d756febe6..2720c49e3 100755 --- a/docs/deploy.sh +++ b/docs/deploy.sh @@ -9,20 +9,20 @@ set -e # navigate into the build output directory cd docs/.vuepress/dist -# I need to deploy all the documentation inside docs folder +# Need to deploy all the documentation inside docs folder mkdir docs-new # move all the files from the current directory in docs mv `\ls -1 ./ | grep -v docs-new` ./docs-new # fetch the current site, remove the old docs dir and make current the new one -git clone -b gh-pages https://github.com/GrapesJS/grapesjs.git tmp && mv tmp/* tmp/.* . && rm -rf tmp -rm -fR docs -mv ./docs-new ./docs +git clone -b main https://github.com/GrapesJS/website.git tmp && mv tmp/* tmp/.* . && rm -rf tmp +rm -fR public/docs +mv ./docs-new ./public/docs # stage all and commit git add -A git commit -m 'deploy docs' -git push https://artf@github.com/GrapesJS/grapesjs.git gh-pages -# surge --domain grapesjs.surge.sh +git push https://artf@github.com/GrapesJS/website.git main + cd -