Update jekyll.yml v11 #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |