Skip to content

Commit 39b503f

Browse files
committed
🆙 update: add docs deploy script
1 parent 598489d commit 39b503f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Diff for: scripts/docs-deploy.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env sh
2+
3+
# abort on errors
4+
set -e
5+
6+
# build
7+
npm run docs:build
8+
9+
# navigate into the build output directory
10+
cd docs/.vuepress/dist
11+
12+
# if you are deploying to a custom domain
13+
# echo 'www.example.com' > CNAME
14+
15+
git init
16+
git add -A
17+
git commit -m 'deploy'
18+
19+
git push -f [email protected]:kazupon/eslint-plugin-vue-i18n.git master:gh-pages
20+
21+
cd -

0 commit comments

Comments
 (0)