deploy.sh 517 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env sh
  2. # abort on errors
  3. set -e
  4. # build
  5. npm run build
  6. # navigate into the build output directory
  7. cd docs/.vuepress/dist
  8. # if you are deploying to a custom domain
  9. # echo 'www.example.com' > CNAME
  10. git init
  11. git add -A
  12. git commit -m 'deploy'
  13. # if you are deploying to https://<USERNAME>.github.io
  14. # git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
  15. # if you are deploying to https://<USERNAME>.github.io/<REPO>
  16. # git push -f git@github.com:<USERNAME>/<REPO>.git master:gh-pages
  17. cd -