mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Added argument for uploading to GitHub Pages
This commit is contained in:
parent
c7b52bc730
commit
963c257e20
1 changed files with 5 additions and 1 deletions
|
|
@ -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',
|
||||
)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue