From 85fa0055a781a8b09e309244792ffe899b13fab0 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Wed, 30 Sep 2015 18:43:29 -0500 Subject: [PATCH] Tweaking script --- package-and-deploy.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/package-and-deploy.sh b/package-and-deploy.sh index 1756bed..6ac8778 100755 --- a/package-and-deploy.sh +++ b/package-and-deploy.sh @@ -9,8 +9,22 @@ # commit the changes # push the changes to github -cp DPSResume.pdf .. -cp ResumeSite.tar.gz .. +cp DPSResume.pdf ~ +cp ResumeSite.tar.gz ~ -git clean -f . +# 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