mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-08 22:48:14 -05:00
* Remove turbopack * Fix ci errors * Sim agent import fix * Lint * Ci orchestration * Lint * Ci updates * Tdz fix for generate * Remove logger * Fix imports * Lint
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
name: Trigger.dev Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- staging
|
|
workflow_call:
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Trigger.dev Deploy
|
|
runs-on: ubuntu-latest
|
|
concurrency:
|
|
group: trigger-deploy-${{ github.ref }}
|
|
cancel-in-progress: false
|
|
env:
|
|
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 'lts/*'
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: latest
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Deploy to Staging
|
|
if: github.ref == 'refs/heads/staging'
|
|
working-directory: ./apps/sim
|
|
run: npx --yes trigger.dev@4.0.4 deploy -e staging
|
|
|
|
- name: Deploy to Production
|
|
if: github.ref == 'refs/heads/main'
|
|
working-directory: ./apps/sim
|
|
run: npx --yes trigger.dev@4.0.4 deploy
|
|
|