Skip to content

Updated appraisal gemfiles #230

Updated appraisal gemfiles

Updated appraisal gemfiles #230

Workflow file for this run

name: Deploy docs
on:
push:
branches: [main]
paths:
- 'docs/**'
- 'lib/tasks/models_docs.rake'
- '.github/workflows/docs.yml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby for models guide generation (root Gemfile)
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: Install libvips for jekyll-og-image
run: |
echo "Installing libvips..."
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends libvips-dev
- name: Cache fonts
uses: actions/cache@v4
id: cache-fonts
with:
path: |
/usr/share/fonts/truetype/plus-jakarta-sans
~/.cache/fontconfig
key: ${{ runner.os }}-fonts-v2
restore-keys: |
${{ runner.os }}-fonts-
- name: Install fonts for OG image generation
run: |
# Always install Inter from apt (fast)
sudo apt-get install -y fonts-inter fonts-inter-variable
if [ "${{ steps.cache-fonts.outputs.cache-hit }}" != "true" ]; then
echo "Installing Plus Jakarta Sans..."
wget -q https://github.com/tokotype/PlusJakartaSans/archive/refs/heads/master.zip -O PlusJakartaSans.zip
unzip -q PlusJakartaSans.zip
sudo mkdir -p /usr/share/fonts/truetype/plus-jakarta-sans
sudo cp PlusJakartaSans-master/fonts/ttf/*.ttf /usr/share/fonts/truetype/plus-jakarta-sans/
rm -rf PlusJakartaSans.zip PlusJakartaSans-master
else
echo "Plus Jakarta Sans cached"
fi
# Always update font cache
sudo fc-cache -fv
# Verify fonts are installed
echo "Verifying fonts:"
fc-list | grep -i inter || echo "Inter font not found"
fc-list | grep -i jakarta || echo "Plus Jakarta Sans not found"
- name: Setup Ruby for Jekyll build (docs Gemfile)
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
working-directory: docs
cache-version: 3
- name: Setup Pages
id: 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:
path: docs/_site
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4