How this site was createdjekyllssg March 12, 2021
Publishing a site using an SSG from GitHub Actions
Wordpress for several years (on-off), I decided to move to SSG (Static Site Generator)
I come to love
markdown, and the ability to write my posts from
VS Code directly.
So, here I will just give a high level overwiew of what takes to create a simple site using SSG.
If you are new to the world of site generators, this could be a good start:
docsy-jekyll is a well done mixture of
docsy and nice-looking theme.
To start using
docsy-jekyll, just go their GitHub repo, click on ‘Use this Template’.
Read the readme file, it comes with useful stuff.
The CI/CD job should do 3 main tasks:
- Checkout code
steps: - uses: actions/checkout@v2
- Build the site
- name: Build site with docker-compose run: docker-compose up
Note that default
docker-compose.yaml comes with the
So, change it to only
#command: jekyll serve --no-watch --drafts --incremental command: jekyll build
- Publish to your hosting account
- name: ftp-action uses: email@example.com with: host: my-domain.com user: <ftp_user>@my-domain.com password: <ftp_user_password> localDir: ./_site remoteDir: .
I used my own domain hosting company to hosts the site.
But, you can use also GitHub Pages to host it.