-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.35 KB
/
Copy pathdeploy-langgraph.yml
File metadata and controls
52 lines (43 loc) · 1.35 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
name: Deploy LangGraph
on:
push:
branches: ["main"]
paths:
- "apps/open-swe/**"
- "packages/shared/**"
- "package.json"
workflow_dispatch: # Allows manual triggering
# If another push happens while this workflow is still running,
# cancel the earlier run in favor of the next run.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
name: Deploy to LangGraph Platform
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable --mode=skip-build
- name: Execute deployment
run: |
cd apps/open-swe
yarn tsx ./scripts/deploy-langgraph.ts
env:
CONTROL_PLANE_HOST: ${{ secrets.CONTROL_PLANE_HOST }}
LANGSMITH_API_KEY: ${{ secrets.LANGSMITH_API_KEY }}
INTEGRATION_ID: ${{ secrets.INTEGRATION_ID }}
DEPLOYMENT_ID: ${{ secrets.DEPLOYMENT_ID }}
timeout-minutes: 35
- name: Deployment status
if: always()
run: echo "Deployment workflow completed with status ${{ job.status }}"