Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(ci): auto deploy lexical-service (#4032)
Eric Hayesc85f4667e1bc
diff --git a/.github/workflows/deploy-lexical-service-dev-push.yml b/.github/workflows/deploy-lexical-service-dev-push.ymlnew file mode 100644index 0000000000..7eeb45f90d--- /dev/null+++ b/.github/workflows/deploy-lexical-service-dev-push.yml@@ -0,0 +1,18 @@+name: "Deploy lexical service dev"+on:+ workflow_dispatch:+ push:+ branches: [main]++concurrency:+ group: ${{ github.workflow }}+ # We do not want to cancel a deployment if it's in progress. That could lead to a broken deployment.+ cancel-in-progress: false++jobs:+ deploy_lexical_service:+ uses: ./.github/workflows/deploy-lexical-service.yml+ with:+ environment: dev+ secrets:+ CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}diff --git a/.github/workflows/deploy-lexical-service.yml b/.github/workflows/deploy-lexical-service.ymlnew file mode 100644index 0000000000..3300053f3d--- /dev/null+++ b/.github/workflows/deploy-lexical-service.yml@@ -0,0 +1,41 @@+name: Deploy Lexical Service+on:+ workflow_dispatch:+ inputs:+ environment:+ required: true+ type: choice+ options:+ - dev+ - prod+ description: The environment to deploy to+ workflow_call:+ inputs:+ environment:+ required: true+ type: string+ description: The environment to deploy to. e.g. (dev, prod)+ secrets:+ CLOUDFLARE_API_TOKEN:+ required: true++concurrency:+ group: ${{ github.workflow }}-lexical-service-${{ inputs.environment }}+ # We do not want to cancel a deployment if it's in progress. That could lead to a broken deployment.+ cancel-in-progress: false++jobs:+ deploy:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v6+ - name: Setup Bun+ uses: oven-sh/setup-bun@v2+ - name: Install dependencies+ working-directory: js+ run: bun install --frozen-lockfile+ - name: Deploy to Cloudflare (${{ inputs.environment }})+ working-directory: js/lexical-service+ run: bun run deploy-${{ inputs.environment }}+ env:+ CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.ymlindex 693b06a627..8dfe0d0efb 100644--- a/.github/workflows/release-production.yml+++ b/.github/workflows/release-production.yml@@ -24,6 +24,15 @@ jobs:DD_API_KEY: ${{ secrets.DD_API_KEY }}CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}+ deploy-lexical-service:+ name: Deploy Lexical Service+ needs: [deploy-cloud-storage]+ uses: ./.github/workflows/deploy-lexical-service.yml+ with:+ environment: prod+ secrets:+ CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}+build:name: Build Web Appruns-on: linux-extra-beefy