deploy.sh 447 Bytes
# ็”Ÿๆˆ้™ๆ€ๆ–‡ไปถ
npm run docs:build

# ่ฟ›ๅ…ฅ็”Ÿๆˆ็š„ๆ–‡ไปถๅคน
cd docs/.vuepress/dist

# ๅฆ‚ๆžœๆ˜ฏๅ‘ๅธƒๅˆฐ่‡ชๅฎšไน‰ๅŸŸๅ
# echo 'www.example.com' > CNAME

git init
git add -A
git commit -m 'deploy'

# ๅฆ‚ๆžœๅ‘ๅธƒๅˆฐ https://<USERNAME>.github.io
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master

# ๅฆ‚ๆžœๅ‘ๅธƒๅˆฐ https://<USERNAME>.github.io/<REPO>
git push -f git@github.com:ly525/luban-h5.git master:gh-pages

cd -