deploy.sh 276 B

123456789101112
  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. start "https://gitee.com/chu1204505056/admin-pro/pages"
  11. cd -
  12. exec /bin/bash