The public sources for my resume. These sources are auto compiled and published upon changes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
894 B

9 years ago
9 years ago
9 years ago
9 years ago
6 years ago
  1. #!/usr/bin/env bash
  2. # Script to package the PDF and the html.
  3. # Store them.
  4. # flush the current directory
  5. # checkout the gh-pages branch
  6. # extract the updated site over the current
  7. # add the changes
  8. # commit the changes
  9. # push the changes to github
  10. mkdir -p ~/tmp
  11. cp resume.pdf ~/tmp
  12. cp resume_for_recruiters.pdf ~/tmp
  13. cp ResumeSite.tar.gz ~/tmp
  14. # Prepare the current directory
  15. git clean -fq .
  16. git clean -fXq
  17. git checkout .
  18. #Checkout the deployment directory
  19. git checkout gh-pages
  20. # Move and extract the files
  21. tar -zxvf ~/tmp/ResumeSite.tar.gz .
  22. rm ~/tmp/ResumeSite.tar.gz
  23. mv ~/tmp/resume.pdf .
  24. mv ~/tmp/resume_for_recruiters.pdf .
  25. # Add the files
  26. git add .
  27. git commit -m "Auto updating resume site files"
  28. git push ssh://git@gitlab.sothr.com:9141/warricksothr/resume.git HEAD:gh-pages --force
  29. # Prepare the current directory
  30. git clean -fq .
  31. git clean -fdXq
  32. git checkout master
  33. git pull