fix(ci): update trigger.dev ci to only push to staging on merge to staging & for prod as well (#1518)

This commit is contained in:
Waleed
2025-10-01 13:22:04 -07:00
committed by GitHub
parent 97f69a24e1
commit 896f7bb0a0

View File

@@ -32,11 +32,11 @@ jobs:
run: bun install
- name: Deploy to Trigger.dev (Staging)
if: github.ref == 'refs/heads/staging'
if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
working-directory: ./apps/sim
run: npx --yes trigger.dev@4.0.4 deploy -e staging
- name: Deploy to Trigger.dev (Production)
if: github.ref == 'refs/heads/main'
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
working-directory: ./apps/sim
run: npx --yes trigger.dev@4.0.4 deploy