diff --git a/README.md b/README.md index 0c2ed20..0a8f30a 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ in the virtual environment your pelican site is developed in. ## Environment variables - `GH_PAGES_BRANCH` (optional): override the default `gh-pages` deployment branch - - `PELICAN_CONFIG_FILE` (optional): override the default `pelicanconf.py` config file + - `PELICAN_CONFIG_FILE` (optional): override the default `pelicanconf.py` config file + - `PELICAN_CONTENT_FOLDER` (optional): 'override the default `content` content folder' - `GITHUB_TOKEN`: (required) should be `${{secrets.GITHUB_TOKEN}}`, see [the workflow demo in the demo repository for an example of this][workflow_demo]. This secret is fulfilled by GitHub. ## Demo diff --git a/action.yml b/action.yml index d8f68b6..71ed9eb 100644 --- a/action.yml +++ b/action.yml @@ -18,3 +18,7 @@ inputs: description: 'override the default `pelicanconf.py` config file' required: false default: pelicanconf.py + PELICAN_CONTENT_FOLDER: + description: 'override the default `content` content folder' + required: false + default: content diff --git a/entrypoint.sh b/entrypoint.sh index fef06a6..c5268c0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,7 +8,7 @@ echo "ACTOR: $GITHUB_ACTOR" echo '=================== Install Requirements ===================' pip install -r requirements.txt echo '=================== Build site ===================' -pelican content -o output -s ${PELICAN_CONFIG_FILE:=pelicanconf.py} +pelican ${PELICAN_CONTENT_FOLDER:=content} -o output -s ${PELICAN_CONFIG_FILE:=pelicanconf.py} echo '=================== Publish to GitHub Pages ===================' cd output # shellcheck disable=SC2012