Browse Source

Moved to a move instead of a copy for the files

environments/production/deployments/9
Drew Short 9 years ago
parent
commit
daaf0361dc
  1. 13
      package-and-deploy.sh

13
package-and-deploy.sh

@ -9,8 +9,10 @@
# commit the changes
# push the changes to github
cp DPSResume.pdf ~
cp ResumeSite.tar.gz ~
mkdir -p ~/tmp
cp DPSResume.pdf ~/tmp
cp ResumeSite.tar.gz ~/tmp
# Prepare the current directory
git clean -fq .
@ -20,9 +22,10 @@ git checkout .
#Checkout the deployment directory
git checkout gh-pages
# Copy the files
tar -zxvf ~/ResumeSite.tar.gz .
cp ~/DPSResume.pdf .
# Move and extract the files
tar -zxvf ~/tmp/ResumeSite.tar.gz .
rm ~/tmp/ResumeSite.tar.gz
mv ~/tmp/DPSResume.pdf .
# Add the files
git add .

Loading…
Cancel
Save