Fuse/scripts/deploy-docs.sh
Kiro Risk 0467de5bb9
chore: adopt convention commits (#453)
* chore: adopt conventional commits via standard-version

Conversation which stareted it all: #452

* docs(github): add DEVELOPERS.md

Add a DEVELOPERS.md file to denote:

(1) How to run tests
(2) Git Commit Guidelines

See #452 for history.

* docs(site): update deploy-docs

Two main things:

(1) Made it conform to convention commits
(2) Added script in package.json

* chore(package): made tests not spit out results during postbump

* chore(release): remove old release script to make way for standard-version

* docs(github): add details to dev contributions

* docs: update links in DEVELOPERS.md
2020-06-21 20:33:23 -07:00

29 lines
483 B
Bash
Executable File

#!/usr/bin/env sh
# abort on errors
set -e
read -p "Do you want to publish the website? (y/n) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
# build
npm run docs:build
# navigate into the build output directory
cd docs/.vuepress/dist
echo 'fusejs.io' > CNAME
git init
git add -A
git commit -m 'docs(site): publish site'
git push -f git@github.com:krisk/fuse.git master:gh-pages
echo "✅ Pushed to GitHub"
else
echo "\033[0;31mCancelling...\033[0m"
fi