2024-02-27 00:42:22 +00:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
jekyll:
|
2024-02-27 03:15:46 +00:00
|
|
|
runs-on: docker
|
2024-02-27 03:06:46 +00:00
|
|
|
container:
|
2024-02-27 03:15:46 +00:00
|
|
|
image: jvconseil/jekyll-docker
|
2024-02-27 00:42:22 +00:00
|
|
|
steps:
|
2024-06-14 17:14:09 +00:00
|
|
|
- name: Checkout source
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Checkout built site
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
ref: pages
|
|
|
|
path: '_site'
|
|
|
|
- name: Setup cache directory
|
|
|
|
run: mkdir .jekyll-cache
|
|
|
|
- name: Install dependencies
|
|
|
|
run: bundle install
|
|
|
|
- name: Build the site
|
|
|
|
run: jekyll build --trace
|
|
|
|
- name: Publish
|
|
|
|
run: |
|
|
|
|
cd _site
|
|
|
|
touch .nojekyll
|
|
|
|
git config user.name "Scribe"
|
|
|
|
git config user.email "scribe@niblock.tech"
|
|
|
|
git add -A
|
|
|
|
git status
|
|
|
|
git commit -m "Automated Publish"
|
|
|
|
git push
|