Add Mistral AI provider support #138
This file contains hidden or 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: 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 (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: Install libvips for jekyll-og-image | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y --no-install-recommends libvips-dev | |
| - name: Install fonts for OG image generation | |
| run: | | |
| # Install Inter font from apt | |
| sudo apt-get install -y fonts-inter fonts-inter-variable | |
| # Download and install Plus Jakarta Sans from official GitHub repository | |
| 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 | |
| # Update font cache | |
| sudo fc-cache -fv | |
| # Verify fonts are installed | |
| echo "Installed 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 (ruby_llm environment) | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3' | |
| bundler-cache: true | |
| working-directory: docs | |
| - 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 |