-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 974 Bytes
/
jekyll.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build and deploy to GitHub Pages
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Set up Ruby with a specific version (ensure it's >= 3.0)
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0' # Set Ruby version to 3.0 or higher
# Check Ruby version to verify it's 3.0 or higher
- name: Check Ruby version
run: ruby -v
# Update RubyGems to the required version (>= 3.3.22)
- name: Update RubyGems
run: |
gem update --system 3.3.22
# Install bundler
- name: Install Bundler
run: gem install bundler
# Install dependencies
- name: Install dependencies
run: bundle install
- uses: helaili/jekyll-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
target_branch: 'gh-pages'