forked from tldraw/tldraw
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.23 KB
/
deploy-mcp-app.yml
File metadata and controls
53 lines (44 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Deploy MCP app
on:
workflow_dispatch:
inputs:
target:
description: 'Target ref to deploy'
required: true
default: 'production'
env:
CI: 1
PRINT_GITHUB_ANNOTATIONS: 1
TLDRAW_ENV: production
TARGET: ${{ github.event.inputs.target }}
defaults:
run:
shell: bash
jobs:
deploy:
name: Deploy MCP app to production
timeout-minutes: 10
runs-on: ubuntu-latest
environment: deploy-production
concurrency: mcp-app-deploy-production
steps:
- name: Check out code
uses: actions/checkout@v6
with:
ref: ${{ env.TARGET }}
submodules: true
fetch-depth: 0
- uses: ./.github/actions/setup
- name: Build types
run: yarn build-types
- name: Deploy
run: yarn workspace mcp-app deploy
env:
VITE_TLDRAW_LICENSE_KEY: ${{ secrets.MCP_APP_TLDRAW_LICENSE_KEY }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- name: Notify Discord on failure
if: failure()
uses: ./.github/actions/discord-fail-notify
with:
webhook-url: ${{ secrets.DISCORD_DEPLOY_WEBHOOK_URL }}