Added argument for uploading to GitHub Pages

This commit is contained in:
Ratul Minhaz 2014-09-25 00:59:55 +06:00
commit 963c257e20

View file

@ -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',
)
)