Browse Source

Merge branch 'master' of https://github.com/warricksothr/resume

environments/production/deployments/9
Drew Short 9 years ago
parent
commit
d16e76349b
  1. 2
      .gitignore
  2. 1
      README.md
  3. 6
      build-html.sh
  4. 4
      build-pdf.sh
  5. 30
      package-and-deploy.sh

2
.gitignore

@ -1,10 +1,10 @@
*~
*.xref *.xref
*.lg *.lg
*.idv *.idv
*.4ct *.4ct
*.4tc *.4tc
*.tmp *.tmp
*.sh
## Core latex/pdflatex auxiliary files: ## Core latex/pdflatex auxiliary files:
*.aux *.aux

1
README.md

@ -0,0 +1 @@
# [View Resume](https://warricksothr.github.io/resume)

6
build-html.sh

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Script to build an HTML site from the PDF source
docker run -d -P --name pdf2htmlex -v /pdf sothr/pdf2htmlex pdf2htmlex --embed cfijo --dest-dir out DPSResume.pdf
tar -czvf ResumeSite.tar.gz out/*

4
build-pdf.sh

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Script to build a PDF from the latex source
docker run -d -P --name latex -v /latex narf/latex latex --output-format pdf DPSResume.tex

30
package-and-deploy.sh

@ -0,0 +1,30 @@
#!/usr/bin/env bash
# Script to package the PDF and the html.
# Store them.
# flush the current directory
# checkout the gh-pages branch
# extract the updated site over the current
# add the changes
# commit the changes
# push the changes to github
cp DPSResume.pdf ~
cp ResumeSite.tar.gz ~
# Prepare the current directory
git clean -fq .
git clean -Xq
git checkout .
#Checkout the deployment directory
git checkout tags/gh-pages
# Copy the files
tar -zxvf ~/ResumeSite.tar.gz .
cp ~/DPSResume.pdf .
# Add the files
git add .
git commit -m "Auto updating resume site files"
git push origin gh-pages
Loading…
Cancel
Save