| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- name: deploy-lab-catalog
- on:
- push:
- branches: [v2]
- paths:
- - ".github/workflows/deploy-lab-catalog.yml"
- - "bun.lock"
- - "package.json"
- - "packages/drive/**"
- - "packages/protocol/src/simulation.ts"
- - "packages/simulation/**"
- - "packages/lab/catalog/**"
- workflow_dispatch:
- concurrency:
- group: deploy-lab-catalog-${{ github.ref_name }}
- cancel-in-progress: false
- permissions:
- contents: read
- jobs:
- deploy:
- if: github.repository == 'anomalyco/opencode' && github.ref_name == 'v2'
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- - uses: ./.github/actions/setup-bun
- - name: Install ffmpeg
- run: |
- sudo apt-get update
- sudo apt-get install --yes ffmpeg
- - name: Validate
- run: |
- bun --cwd packages/protocol typecheck
- bun --cwd packages/simulation typecheck
- bun --cwd packages/drive run check
- bun --cwd packages/drive run test
- bun --cwd packages/lab/catalog run check
- - name: Deploy
- working-directory: packages/lab/catalog
- run: bun run deploy
- env:
- CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|