mirror of https://github.com/artf/grapesjs.git
nocodeframeworkdrag-and-dropsite-buildersite-generatortemplate-builderui-builderweb-builderweb-builder-frameworkwebsite-builderno-codepage-builder
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
669 B
28 lines
669 B
#!/usr/bin/env sh
|
|
|
|
# abort on errors
|
|
set -e
|
|
|
|
# build
|
|
# npm run docs:build
|
|
|
|
# navigate into the build output directory
|
|
cd docs/.vuepress/dist
|
|
|
|
# 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 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/website.git main
|
|
|
|
cd -
|
|
|