name: Trigger.dev Deploy on: workflow_call: workflow_dispatch: jobs: deploy: name: Deploy to Trigger.dev runs-on: blacksmith-4vcpu-ubuntu-2404 concurrency: group: trigger-deploy-${{ github.ref }} cancel-in-progress: false env: TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }} TRIGGER_PROJECT_ID: ${{ secrets.TRIGGER_PROJECT_ID }} steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node uses: actions/setup-node@v4 with: node-version: latest - name: Setup Bun uses: oven-sh/setup-bun@v2 with: bun-version: 1.2.22 - name: Install dependencies run: bun install - name: Deploy to Trigger.dev (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 Trigger.dev (Production) if: github.ref == 'refs/heads/main' working-directory: ./apps/sim run: npx --yes trigger.dev@4.0.4 deploy