deploy.sh 369 B

12345678910111213141516171819202122
  1. #!/usr/bin/env sh
  2. # abort on errors
  3. set -e
  4. # build
  5. yarn build
  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. git init
  11. git add -A
  12. git commit -m 'deploy'
  13. # if you are deploying to https://<USERNAME>.github.io/<REPO>
  14. git push -f git@github.com:rubjo/victor-mono.git master:gh-pages
  15. cd -