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.

35 lines
689 B

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. cp DPSResume.pdf ~
  11. cp ResumeSite.tar.gz ~
  12. # Prepare the current directory
  13. git clean -fq .
  14. git clean -Xq
  15. git checkout .
  16. #Checkout the deployment directory
  17. git checkout tags/gh-pages
  18. # Copy the files
  19. tar -zxvf ~/ResumeSite.tar.gz .
  20. cp ~/DPSResume.pdf .
  21. # Add the files
  22. git add .
  23. git commit -m "Auto updating resume site files"
  24. git push origin gh-pages
  25. # Prepare the current directory
  26. git clean -fq .
  27. git clean -dXq
  28. git checkout master