mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-08 22:48:14 -05:00
* improvement(chat): deployed chat no longer uses subdomains, uses sim.ai/chat/[identifier]
* improvement(ci): ensure atomicity in trigger deploys, improve overall ci organization
* Revert "improvement(chat): deployed chat no longer uses subdomains, uses sim.ai/chat/[identifier]"
This reverts commit c68c052601.
---------
Co-authored-by: waleed <waleed>
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: Trigger.dev Promote
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
promote:
|
|
name: Promote Trigger.dev
|
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
concurrency:
|
|
group: trigger-promote-${{ github.ref }}
|
|
cancel-in-progress: false
|
|
env:
|
|
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
|
|
|
|
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: latest
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Promote Trigger.dev (Staging)
|
|
if: github.ref == 'refs/heads/staging'
|
|
working-directory: ./apps/sim
|
|
run: npx --yes trigger.dev@4.0.4 deploy promote --latest -e staging
|
|
|
|
- name: Promote Trigger.dev (Production)
|
|
if: github.ref == 'refs/heads/main'
|
|
working-directory: ./apps/sim
|
|
run: npx --yes trigger.dev@4.0.4 deploy promote --latest |