Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [main]
paths:
- 'docs/**'
- 'lib/**'
- '.github/workflows/docs.yml'
workflow_dispatch:

Expand All @@ -23,19 +24,32 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby

- name: Setup Ruby for models guide generation (ruby_llm environment)
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true

- name: Run models:docs rake task
run: bundle exec rake models:docs

- name: Setup Ruby for Jekyll build (ruby_llm environment)
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
working-directory: docs

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Build with Jekyll
working-directory: docs
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand All @@ -50,4 +64,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
Loading