Files
models.dev/.github/workflows/deploy.yml
Aiden Cline 707b7ecb61 fix(ci): stop model sync failing on Bun setup and NanoGPT output limits (#11403)
* fix(ci): stop model sync failing on Bun setup and NanoGPT output limits

* fix(sync): fall back to context window for NanoGPT output limit

* fix(sync): use context window for unknown NanoGPT text output limits
2026-10-24 20:18:20 -05:00

40 lines
1.3 KiB
YAML

name: Deploy
on:
push:
branches:
- dev
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
deploy:
if: github.repository == 'anomalyco/models.dev'
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: latest
# Workaround for Pulumi version conflict:
# GitHub runners have Pulumi 3.212.0+ pre-installed, which removed the -root flag
# from pulumi-language-nodejs (see https://github.com/pulumi/pulumi/pull/21065).
# SST 3.17.x uses Pulumi SDK 3.210.0 which still passes -root, causing a conflict.
# Removing the system language plugin forces SST to use its bundled compatible version.
# TODO: Remove when sst supports Pulumi >3.210.0
- name: Fix Pulumi version conflict
run: sudo rm -f /usr/local/bin/pulumi-language-nodejs
- name: Install dependencies
run: bun install
- run: bun sst deploy --stage=dev
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_DEFAULT_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_DEFAULT_ACCOUNT_ID }}