chore: add Github Pages commit message variable

This commit is contained in:
Salar Nosrati-Ershad 2023-11-22 22:08:57 +03:30
commit 610d5ef092
No known key found for this signature in database
GPG key ID: E152C2C0DD06614B
2 changed files with 5 additions and 1 deletions

3
RELEASE.md Normal file
View file

@ -0,0 +1,3 @@
Release type: patch
Make GitHub Pages commit message configurable via a variable

View file

@ -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 %}