Last active
December 3, 2018 13:18
-
-
Save yoel-zeldes/7fee989b3798f070af9f520785d65cdd to your computer and use it in GitHub Desktop.
This file contains 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/sh | |
while read local_ref local_sha remote_ref remote_sha | |
do | |
if [ "$remote_ref" = "refs/heads/source" ] | |
then | |
echo 'pushing output folder (production version) to master...' | |
pelican content -o output -s publishconf.py | |
echo anotherdatum.com > output/CNAME | |
ghp-import output | |
git push --no-verify git@github.com:yoel-zeldes/yoel-zeldes.github.io.git gh-pages:master | |
pelican content -o output | |
fi | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment