Added build.sh

This commit is contained in:
Oliver Davies 2015-04-08 23:43:59 +01:00
parent 85114b2160
commit 27ce1433ad
2 changed files with 26 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
/gh-pages-deployment/
/output_*/
/source/components/
/.sculpin/

25
build.sh Executable file
View file

@ -0,0 +1,25 @@
#!/bin/bash
set -x
sculpin='/usr/local/bin/sculpin'
deploy_dir='./gh-pages-deployment'
branch='master'
rm -rf ./output_prod
${sculpin} generate --env=prod
rm -rf ${deploy_dir}
git clone git@github.com:opdavies/opdavies.github.io.git ${deploy_dir}
pushd ${deploy_dir}
git checkout -B ${branch}
cp -R ../output_prod/* ./
git add -A .
git commit -m "Deploying sculpin-generated pages to \`${branch}\` branch"
git push origin master --force
popd