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

#!/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
# Prepare the current directory
git clean -fq .
git clean -dXq
git checkout master