Skip to content

Commit 4f60599

Browse files
committed
Update Jekyll to 4.3.4 and refactor GitHub Actions workflow
- Update Jekyll from 4.3.1 to 4.3.4 for Ruby 3.3.9 compatibility - Update GitHub Actions workflow to use Ruby 3.3 and latest setup-ruby version - Add x86_64-linux platform for GitHub Actions compatibility - Use upload-pages-artifact@v3 for improved deployment
1 parent cdefe19 commit 4f60599

File tree

2 files changed

+32
-11
lines changed

2 files changed

+32
-11
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
16
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2-
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
7+
name: Deploy Jekyll site to Pages
38

49
on:
510
# Runs on pushes targeting the default branch
@@ -15,27 +20,36 @@ permissions:
1520
pages: write
1621
id-token: write
1722

18-
# Allow one concurrent deployment
23+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1925
concurrency:
2026
group: "pages"
21-
cancel-in-progress: true
27+
cancel-in-progress: false
2228

2329
jobs:
2430
# Build job
2531
build:
2632
runs-on: ubuntu-latest
2733
steps:
2834
- name: Checkout
29-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
36+
- name: Setup Ruby
37+
uses: ruby/[email protected]
38+
with:
39+
ruby-version: "3.3" # Not needed with a .ruby-version file
40+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
41+
cache-version: 0 # Increment this number if you need to re-download cached gems
3042
- name: Setup Pages
31-
uses: actions/configure-pages@v2
43+
id: pages
44+
uses: actions/configure-pages@v5
3245
- name: Build with Jekyll
33-
uses: actions/jekyll-build-pages@v1
34-
with:
35-
source: ./
36-
destination: ./_site
46+
# Outputs to the './_site' directory by default
47+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
48+
env:
49+
JEKYLL_ENV: production
3750
- name: Upload artifact
38-
uses: actions/upload-pages-artifact@v1
51+
# Automatically uploads an artifact from the './_site' directory by default
52+
uses: actions/upload-pages-artifact@v3
3953

4054
# Deployment job
4155
deploy:
@@ -47,4 +61,4 @@ jobs:
4761
steps:
4862
- name: Deploy to GitHub Pages
4963
id: deployment
50-
uses: actions/deploy-pages@v1
64+
uses: actions/deploy-pages@v4

Gemfile.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ GEM
1111
http_parser.rb (~> 0)
1212
eventmachine (1.2.7)
1313
ffi (1.17.2-arm64-darwin)
14+
ffi (1.17.2-x86_64-linux-gnu)
1415
forwardable-extended (2.6.0)
1516
google-protobuf (4.32.0-arm64-darwin)
1617
bigdecimal
1718
rake (>= 13)
19+
google-protobuf (4.32.0-x86_64-linux-gnu)
20+
bigdecimal
21+
rake (>= 13)
1822
http_parser.rb (0.8.0)
1923
i18n (1.14.7)
2024
concurrent-ruby (~> 1.0)
@@ -63,6 +67,8 @@ GEM
6367
safe_yaml (1.0.5)
6468
sass-embedded (1.92.0-arm64-darwin)
6569
google-protobuf (~> 4.31)
70+
sass-embedded (1.92.0-x86_64-linux-gnu)
71+
google-protobuf (~> 4.31)
6672
terminal-table (3.0.2)
6773
unicode-display_width (>= 1.1.1, < 3)
6874
unicode-display_width (2.6.0)
@@ -71,6 +77,7 @@ GEM
7177
PLATFORMS
7278
arm64-darwin-21
7379
arm64-darwin-24
80+
x86_64-linux
7481

7582
DEPENDENCIES
7683
http_parser.rb (~> 0.6.0)

0 commit comments

Comments
 (0)