Skip to content

Commit 9492657

Browse files
ci: switch to new Jekyll GitHub action
1 parent 2692a08 commit 9492657

File tree

3 files changed

+33
-19
lines changed

3 files changed

+33
-19
lines changed

.github/workflows/gh-pages.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,26 @@ jobs:
99
gh-pages:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: helaili/jekyll-action@v2
12+
- uses: actions/checkout@v4
13+
14+
# Use GitHub Actions' cache to cache dependencies on servers
15+
- uses: actions/cache@v4
16+
with:
17+
path: |
18+
.asdf/**
19+
vendor/bundle
20+
key: ${{ runner.os }}-cache-${{ hashFiles('**/cache.key') }}
21+
restore-keys: |
22+
${{ runner.os }}-cache-
23+
24+
# Use GitHub Deploy Action to build and deploy to Github
25+
# For latest version: `jeffreytse/jekyll-deploy-action@master`
26+
- uses: jeffreytse/[email protected]
1427
with:
15-
token: ${{ secrets.GITHUB_TOKEN }}
16-
jekyll_src: site
17-
#jekyll_build_options: -b /website
28+
token: ${{ secrets.GITHUB_TOKEN }} # It's your Personal Access Token(PAT)
29+
branch: 'gh-pages' # Default is gh-pages for github provider
30+
jekyll_src: './site' # Default is root directory
31+
jekyll_cfg: '_config.yml' # Default is _config.yml
32+
ruby_ver: '' # Default is 3.2.0 version
33+
bundler_ver: '' # Default is compatible bundler version (~>2.5.0)
34+
cname: 'www.mignololab.org' # Default is to not use a cname

site/Gemfile

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,30 @@ source "https://rubygems.org"
88
#
99
# This will help ensure the proper Jekyll version is running.
1010
# Happy Jekylling!
11-
gem "jekyll", "~> 3.9.0"
11+
#gem "jekyll", "~> 4.4.1"
1212

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

1616
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
1717
# uncomment the line below. To upgrade, run `bundle update github-pages`.
18-
# gem "github-pages", group: :jekyll_plugins
19-
18+
gem "github-pages", group: :jekyll_plugins
2019
# If you have any plugins, put them here!
2120
group :jekyll_plugins do
22-
gem "jekyll-feed", "~> 0.6"
21+
gem "jekyll-feed", "~> 0.12"
2322
gem 'jekyll-postfiles'
2423
end
2524

26-
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
25+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
2726
# and associated library.
2827
platforms :mingw, :x64_mingw, :mswin, :jruby do
29-
gem "tzinfo", "~> 1.2"
28+
gem "tzinfo", ">= 1", "< 3"
3029
gem "tzinfo-data"
3130
end
3231

3332
# Performance-booster for watching directories on Windows
34-
gem "wdm", "~> 0.1.0", :platforms => [:mingw, :x64_mingw, :mswin]
35-
36-
# kramdown v2 ships without the gfm parser by default. If you're using
37-
# kramdown v1, comment out this line.
38-
gem "kramdown-parser-gfm"
39-
33+
gem "wdm", "~> 0.1", :platforms => [:mingw, :x64_mingw, :mswin]
4034

41-
gem "webrick", "~> 1.8"
35+
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
36+
# do not have a Java counterpart.
37+
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]

site/_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ markdown: kramdown
3636
theme: minima
3737
plugins:
3838
- jekyll-feed
39+
- jekyll-postfiles
3940

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

0 commit comments

Comments
 (0)