deploy.sh 368 B

12345678910111213
  1. #!/usr/bin/env bash
  2. set -e
  3. npm run build
  4. cd dist
  5. touch .nojekyll
  6. git init
  7. git add -A
  8. git commit -m 'deploy'
  9. git push -f "https://${access_token}@gitee.com/chu1204505056/admin-pro.git" master:gh-pages
  10. # git push -f "https://${access_token}@e.coding.net/chu1204505056/vab/admin-pro.git" master
  11. start "https://gitee.com/chu1204505056/admin-pro/pages"
  12. cd -
  13. exec /bin/bash