Skip to content

Commit 1d8715f

Browse files
authored
Update jekyll.yml
1 parent f2bd2be commit 1d8715f

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.github/workflows/jekyll.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,59 @@
22
# They are provided by a third-party and are governed by
33
# separate terms of service, privacy policy, and support
44
# documentation.
5-
6-
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
75
name: Deploy Jekyll site to Pages
86

97
on:
10-
# Runs on pushes targeting the default branch
118
push:
129
branches: ["master"]
13-
14-
# Allows you to run this workflow manually from the Actions tab
1510
workflow_dispatch:
1611

17-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1812
permissions:
1913
contents: read
2014
pages: write
2115
id-token: write
2216

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.
2517
concurrency:
2618
group: "pages"
2719
cancel-in-progress: false
2820

2921
jobs:
30-
# Build job
3122
build:
3223
runs-on: ubuntu-latest
3324
steps:
3425
- name: Checkout
3526
uses: actions/checkout@v4
27+
28+
- name: Install Ruby
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y libssl-dev libreadline-dev zlib1g-dev
32+
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-installer | bash
33+
export PATH="$HOME/.rbenv/bin:$PATH"
34+
eval "$(rbenv init -)"
35+
rbenv install 3.1.4
36+
rbenv global 3.1.4
37+
touch /opt/hostedtoolcache/Ruby/3.1.4/x64.complete
38+
3639
- name: Setup Ruby
37-
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
40+
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42
3841
with:
3942
ruby-version: '3.1' # Not needed with a .ruby-version file
4043
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
4144
cache-version: 0 # Increment this number if you need to re-download cached gems
45+
4246
- name: Setup Pages
4347
id: pages
4448
uses: actions/configure-pages@v5
49+
4550
- name: Build with Jekyll
46-
# Outputs to the './_site' directory by default
4751
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
4852
env:
4953
JEKYLL_ENV: production
54+
5055
- name: Upload artifact
51-
# Automatically uploads an artifact from the './_site' directory by default
5256
uses: actions/upload-pages-artifact@v3
5357

54-
# Deployment job
5558
deploy:
5659
environment:
5760
name: github-pages

0 commit comments

Comments
 (0)