mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-10 07:27:57 -05:00
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, staging]
|
|
pull_request:
|
|
branches: [main, staging]
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
test-build:
|
|
name: Test and Build
|
|
uses: ./.github/workflows/test-build.yml
|
|
secrets: inherit
|
|
|
|
# Build and push images (ECR for staging, ECR + GHCR for main)
|
|
build-images:
|
|
name: Build Images
|
|
needs: test-build
|
|
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging')
|
|
uses: ./.github/workflows/images.yml
|
|
secrets: inherit
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
id-token: write
|
|
|
|
# Deploy Trigger.dev (after builds complete)
|
|
trigger-deploy:
|
|
name: Deploy Trigger.dev
|
|
needs: build-images
|
|
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging')
|
|
uses: ./.github/workflows/trigger-deploy.yml
|
|
secrets: inherit
|
|
|
|
# Process docs embeddings if needed
|
|
process-docs:
|
|
name: Process Docs
|
|
needs: [build-images, trigger-deploy]
|
|
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging')
|
|
uses: ./.github/workflows/docs-embeddings.yml
|
|
secrets: inherit
|