Skip to content

Commit 6b6ecf1

Browse files
authored
Update jekyll.yml
1 parent 4e0afeb commit 6b6ecf1

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/jekyll.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,36 @@ jobs:
3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v4
36+
37+
- name: Install Java (Fix for missing JRE)
38+
run: |
39+
sudo apt update
40+
sudo apt install -y default-jdk
41+
java -version # Verify Java installation
42+
43+
- name: Install Ruby manually (if needed)
44+
run: |
45+
sudo apt update
46+
sudo apt install -y ruby-full
47+
ruby -v # Verify Ruby installation
48+
3649
- name: Setup Ruby
37-
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
50+
uses: ruby/setup-ruby@v1
3851
with:
3952
ruby-version: '3.1' # 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
53+
bundler-cache: true # Runs 'bundle install' and caches installed gems automatically
54+
cache-version: 1 # Increment this to force cache refresh
55+
4256
- name: Setup Pages
4357
id: pages
4458
uses: actions/configure-pages@v5
59+
4560
- name: Build with Jekyll
4661
# Outputs to the './_site' directory by default
4762
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
4863
env:
4964
JEKYLL_ENV: production
65+
5066
- name: Upload artifact
5167
# Automatically uploads an artifact from the './_site' directory by default
5268
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)