mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-08 22:48:14 -05:00
fix(trigger): inject project id env var in correctly (#1520)
This commit is contained in:
committed by
GitHub
parent
6e63eafb79
commit
35d857ef2e
6
.github/workflows/trigger-deploy.yml
vendored
6
.github/workflows/trigger-deploy.yml
vendored
@@ -13,6 +13,7 @@ jobs:
|
|||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
env:
|
env:
|
||||||
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
|
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
|
||||||
|
TRIGGER_PROJECT_ID: ${{ secrets.TRIGGER_PROJECT_ID }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -32,11 +33,12 @@ jobs:
|
|||||||
run: bun install
|
run: bun install
|
||||||
|
|
||||||
- name: Deploy to Trigger.dev (Staging)
|
- name: Deploy to Trigger.dev (Staging)
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
|
if: github.ref == 'refs/heads/staging'
|
||||||
working-directory: ./apps/sim
|
working-directory: ./apps/sim
|
||||||
run: npx --yes trigger.dev@4.0.4 deploy -e staging
|
run: npx --yes trigger.dev@4.0.4 deploy -e staging
|
||||||
|
|
||||||
- name: Deploy to Trigger.dev (Production)
|
- name: Deploy to Trigger.dev (Production)
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
working-directory: ./apps/sim
|
working-directory: ./apps/sim
|
||||||
run: npx --yes trigger.dev@4.0.4 deploy
|
run: npx --yes trigger.dev@4.0.4 deploy
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { defineConfig } from '@trigger.dev/sdk'
|
|||||||
import { env } from './lib/env'
|
import { env } from './lib/env'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
project: env.TRIGGER_PROJECT_ID ?? '',
|
project: env.TRIGGER_PROJECT_ID!,
|
||||||
runtime: 'node',
|
runtime: 'node',
|
||||||
logLevel: 'log',
|
logLevel: 'log',
|
||||||
maxDuration: 600,
|
maxDuration: 600,
|
||||||
|
|||||||
Reference in New Issue
Block a user