You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add theme, Python version and feed domain to GitHub Pages deployment workflow
Add theme, Python version and feed domain support to the reusable GitHub
Actions workflow for deploying a Pelican site to GitHub Pages:
1. Add a new `theme` option to the workflow that callers can use to
specify an external theme to be checked out and used
2. Add a new `python` option to the workflow that callers can use to
specify the Python version, in case they need to build their site
with a particular version of Python
3. Pass `--extra-settings FEED_DOMAIN='"${{ steps.pages.outputs.origin }}"'`
to the `pelican` command to set the value of Pelican's `FEED_DOMAIN`
setting for feed URLs.
Copy file name to clipboardexpand all lines: .github/workflows/github_pages.yml
+28-5
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,16 @@ on:
17
17
default: "output/"
18
18
description: "Where to output the generated files (`pelican`'s `--output` option)"
19
19
type: string
20
+
theme:
21
+
required: false
22
+
default: ""
23
+
description: "The GitHub repo URL of a custom theme to use, for example: 'https://github.com/seanh/sidecar.git'"
24
+
type: string
25
+
python:
26
+
required: false
27
+
default: "3.12"
28
+
description: "The version of Python to use, for example: '3.12' (to use the most recent version of Python 3.12, this is faster) or '3.12.1' (to use an exact version, slower)"
0 commit comments