Skip to content

update ruby ver to 3.2.0 #3

update ruby ver to 3.2.0

update ruby ver to 3.2.0 #3

Workflow file for this run

name: Build and Deploy Jekyll Site from /docs
on:
push:
branches:
- main
paths:
- 'docs/**' # This correctly triggers the workflow only when docs changes
- '.github/workflows/deploy-docs.yml'
workflow_dispatch:
# Add this permissions block
permissions:
contents: write
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.0' # Or your Jekyll's required Ruby version
bundler-cache: true
# Set the cache path to be relative to the docs directory
cache-version: 1
working-directory: './docs'
- name: Build the site
# This command now runs inside the ./docs directory
run: bundle exec jekyll build
working-directory: ./docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# The publish directory is now ./docs/_site
publish_dir: ./docs/_site