parent
27ce1433ad
commit
1c4283ba93
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,3 @@
|
||||||
/gh-pages-deployment/
|
|
||||||
/output_*/
|
/output_*/
|
||||||
/source/components/
|
/source/components/
|
||||||
/.sculpin/
|
/.sculpin/
|
||||||
|
|
25
build.sh
25
build.sh
|
@ -1,25 +0,0 @@
|
||||||
#!/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