Skip to content

Update 4590.md

Update 4590.md #58

name: Deploy Jekyll with GitHub Pages
on:
push:
branches: ["master"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Ruby (with compatible RubyGems)
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1.4" # Use a Ruby version with RubyGems >= 3.3.22
- name: Update RubyGems
run: |
gem update --system 3.3.22 # Explicitly update RubyGems
gem --version # Verify the update
- name: Install dependencies
run: |
gem install bundler
bundle install
- name: Build with Jekyll
run: |
bundle exec jekyll build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./_site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4