Skip to content

add jekyll-last-modified-at plugin and refactor last modified handling #6

add jekyll-last-modified-at plugin and refactor last modified handling

add jekyll-last-modified-at plugin and refactor last modified handling #6

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Restore file timestamps
run: |
git ls-files | while read f; do
ts=$(git log -1 --format="%ct" -- "$f")
touch -d "@$ts" "$f"
done
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: Build
run: bundle exec jekyll build
env:
JEKYLL_ENV: production
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
publish_branch: gh-pages
cname: www.jug-da.de