From 39b503fafb5d44ea164fc39973a5cd4939488d00 Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Tue, 26 Mar 2019 01:34:15 +0900 Subject: [PATCH] :up: update: add docs deploy script --- scripts/docs-deploy.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/docs-deploy.sh diff --git a/scripts/docs-deploy.sh b/scripts/docs-deploy.sh new file mode 100755 index 00000000..36d9309c --- /dev/null +++ b/scripts/docs-deploy.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env sh + +# abort on errors +set -e + +# build +npm run docs:build + +# navigate into the build output directory +cd docs/.vuepress/dist + +# if you are deploying to a custom domain +# echo 'www.example.com' > CNAME + +git init +git add -A +git commit -m 'deploy' + +git push -f git@github.com:kazupon/eslint-plugin-vue-i18n.git master:gh-pages + +cd - \ No newline at end of file