Skip to content

Commit

Permalink
ci: switch to new Jekyll GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-athome committed Feb 5, 2025
1 parent 2692a08 commit 9492657
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,26 @@ jobs:
gh-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: helaili/jekyll-action@v2
- uses: actions/checkout@v4

# Use GitHub Actions' cache to cache dependencies on servers
- uses: actions/cache@v4
with:
path: |
.asdf/**
vendor/bundle
key: ${{ runner.os }}-cache-${{ hashFiles('**/cache.key') }}
restore-keys: |
${{ runner.os }}-cache-
# Use GitHub Deploy Action to build and deploy to Github
# For latest version: `jeffreytse/jekyll-deploy-action@master`
- uses: jeffreytse/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
jekyll_src: site
#jekyll_build_options: -b /website
token: ${{ secrets.GITHUB_TOKEN }} # It's your Personal Access Token(PAT)
branch: 'gh-pages' # Default is gh-pages for github provider
jekyll_src: './site' # Default is root directory
jekyll_cfg: '_config.yml' # Default is _config.yml
ruby_ver: '' # Default is 3.2.0 version
bundler_ver: '' # Default is compatible bundler version (~>2.5.0)
cname: 'www.mignololab.org' # Default is to not use a cname
24 changes: 10 additions & 14 deletions site/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,30 @@ source "https://rubygems.org"
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 3.9.0"
#gem "jekyll", "~> 4.4.1"

# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.0"
gem "minima", "~> 2.5"

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins

gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
gem "jekyll-feed", "~> 0.12"
gem 'jekyll-postfiles'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", "~> 1.2"
gem "tzinfo", ">= 1", "< 3"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0", :platforms => [:mingw, :x64_mingw, :mswin]

# kramdown v2 ships without the gfm parser by default. If you're using
# kramdown v1, comment out this line.
gem "kramdown-parser-gfm"

gem "wdm", "~> 0.1", :platforms => [:mingw, :x64_mingw, :mswin]

gem "webrick", "~> 1.8"
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
# do not have a Java counterpart.
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
1 change: 1 addition & 0 deletions site/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ markdown: kramdown
theme: minima
plugins:
- jekyll-feed
- jekyll-postfiles

# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
Expand Down

0 comments on commit 9492657

Please sign in to comment.