Skip to content

Commit a0adf6c

Browse files
author
Hyunje Jun
committed
Prepare docs:deploy script
1 parent 53208f8 commit a0adf6c

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

deploy-docs.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
git init
13+
git add -A
14+
git commit -m 'Deploy docs'
15+
16+
git push -f git@github.com:line/line-bot-sdk-nodejs.git master:gh-pages
17+
18+
cd -

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"build": "tsc",
2424
"docs": "vuepress dev docs",
2525
"docs:build": "vuepress build docs",
26-
"docs:publish": "./docs/publish.sh",
26+
"docs:deploy": "./deploy-docs.sh",
2727
"release": "npm run build && npm publish --access public",
2828
"precommit": "npm run format:check",
2929
"prepush": "npm run format:check && npm run build && npm run test"

0 commit comments

Comments
 (0)