From 963c257e20582d7b790b0705cf02803e0cf3f8da Mon Sep 17 00:00:00 2001 From: Ratul Minhaz Date: Thu, 25 Sep 2014 00:59:55 +0600 Subject: [PATCH] Added argument for uploading to GitHub Pages --- pelican/tools/templates/fabfile.py.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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