deploy.sh 599 B

1234567891011121314151617181920
  1. #强制推送
  2. #!/usr/bin/env bash
  3. set -e
  4. npm run build
  5. cd dist
  6. touch .nojekyll
  7. git init
  8. git add -A
  9. git commit -m 'deploy'
  10. git push -f "https://${access_token}@gitee.com/chu1204505056/vue-admin-beautiful.git" master:gh-pages
  11. git push -f "https://${access_token}@gitee.com/chu1204505056/vue-admin-beautiful-element.git" master:gh-pages
  12. start "https://gitee.com/chu1204505056/vue-admin-beautiful/pages"
  13. start "https://gitee.com/chu1204505056/vue-admin-beautiful-element/pages"
  14. # git push -f "https://${access_token}@github.com/chuzhixin/vue-admin-beautiful.git" master:gh-pages
  15. cd -
  16. exec /bin/bash