mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add Github Pages commit message variable (#3250)
This commit is contained in:
parent
bf4fd679a5
commit
5e6dba73ac
1 changed files with 2 additions and 1 deletions
|
|
@ -37,6 +37,7 @@ DROPBOX_DIR={{dropbox_dir}}
|
|||
{% endif %}
|
||||
{% if github %}
|
||||
GITHUB_PAGES_BRANCH={{github_pages_branch}}
|
||||
GITHUB_PAGES_COMMIT_MESSAGE=Generate Pelican site
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
|
@ -161,7 +162,7 @@ cf_upload: publish
|
|||
{% if github %}
|
||||
{% set upload = upload + ["github"] %}
|
||||
github: publish
|
||||
ghp-import -m "Generate Pelican site" -b $(GITHUB_PAGES_BRANCH) "$(OUTPUTDIR)"
|
||||
ghp-import -m "$(GITHUB_PAGES_COMMIT_MESSAGE)" -b $(GITHUB_PAGES_BRANCH) "$(OUTPUTDIR)"
|
||||
git push origin $(GITHUB_PAGES_BRANCH)
|
||||
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue