Created
June 10, 2018 20:51
-
-
Save arysom/bb77da6f55b8e5d9ee7e50c798c63fec to your computer and use it in GitHub Desktop.
sculpin publish.sh to github pages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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