deploy.sh 467 B

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