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.

38 lines
809 B

9 years ago
9 years ago
9 years ago
9 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 DPSResume.pdf ~/tmp
  12. cp ResumeSite.tar.gz ~/tmp
  13. # Prepare the current directory
  14. git clean -fq .
  15. git clean -fXq
  16. git checkout .
  17. #Checkout the deployment directory
  18. git checkout gh-pages
  19. # Move and extract the files
  20. tar -zxvf ~/tmp/ResumeSite.tar.gz .
  21. rm ~/tmp/ResumeSite.tar.gz
  22. mv ~/tmp/DPSResume.pdf .
  23. # Add the files
  24. git add .
  25. git commit -m "Auto updating resume site files"
  26. git push gitlab.sothr.com:9142/warricksothr/resume.git HEAD:gh-pages --force
  27. # Prepare the current directory
  28. git clean -fq .
  29. git clean -fdXq
  30. git checkout master