diff --git a/pelican/tools/templates/fabfile.py.in b/pelican/tools/templates/fabfile.py.in index e693bb48..654f910a 100644 --- a/pelican/tools/templates/fabfile.py.in +++ b/pelican/tools/templates/fabfile.py.in @@ -61,6 +61,10 @@ def cf_upload(): '-K {cloudfiles_api_key} ' 'upload -c {cloudfiles_container} .'.format(**env)) +def ghp(): + local('ghp-import -b master {deploy_path} -m "site udpated"'.format(**env)) + local('git push origin master') + @hosts(production) def publish(): local('pelican -s publishconf.py') @@ -70,4 +74,4 @@ def publish(): local_dir=DEPLOY_PATH.rstrip('/') + '/', delete=True, extra_opts='-c', - ) + ) \ No newline at end of file