Skip to content

Instantly share code, notes, and snippets.

@arysom
Created June 10, 2018 20:51
Show Gist options
  • Save arysom/bb77da6f55b8e5d9ee7e50c798c63fec to your computer and use it in GitHub Desktop.
Save arysom/bb77da6f55b8e5d9ee7e50c798c63fec to your computer and use it in GitHub Desktop.
sculpin publish.sh to github pages
#!/bin/bash
if [ $# -ne 1 ]; then
echo "usage: ./publish.sh \"commit message\""
exit 1;
fi
vendor/bin/sculpin generate --env=prod
if [ $? -ne 0 ]; then echo "Could not generate the site"; exit 1; fi
git add -f output_prod && git commit -m "$1"
git subtree push --prefix output_prod origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment