Added build.sh
This commit is contained in:
parent
85114b2160
commit
27ce1433ad
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
/gh-pages-deployment/
|
||||
/output_*/
|
||||
/source/components/
|
||||
/.sculpin/
|
||||
|
|
25
build.sh
Executable file
25
build.sh
Executable 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
|
Reference in a new issue