Basically, three steps are needed:
- First, build the site locally
- Prepare the static built (use ghp-import)
- Push to
master
These steps can be accomplished using:
pelican content -o output -s publishconf.py
ghp-import output
git push [email protected]:drorata/drorata.github.io.git gh-pages:master
For the sake of simplicity and fun, Taskfile
is available.
To make things even better, a GitHub Action .github/workflows/deploy_pages.yml
is also there.
Every push to source
branch will trigger the building of the site and publishing it.