Skip to content

Commit

Permalink
Add Github Pages commit message variable (#3250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Salar Nosrati-Ershad authored Jan 15, 2024
1 parent bf4fd67 commit 5e6dba7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pelican/tools/templates/Makefile.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down Expand Up @@ -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 %}
Expand Down

0 comments on commit 5e6dba7

Please sign in to comment.