Files
socweb/.github/workflows/deploy-langgraph-ui.yml
T
gongzhiyongandClaude Opus 4.6 32f83d714e refactor: migrate LangGraph server from Container App to Azure Web App
## Changes
- Delete Dockerfile and .dockerignore (no longer needed)
- Rewrite deploy-langgraph.yml: zip deploy to Web App (not ACR build)
- Update deploy-langgraph-ui.yml: VITE_LANGGRAPH_URL → soc-langgraph.azurewebsites.net

## Azure Resources
- CREATED: soc-langgraph Web App (Node.js 20, B1 Linux, southeastasia)
- CREATED: soc-langgraph-plan (App Service Plan, B1, southeastasia)
- DELETED: soc-langgraph Container App
- DELETED: soc-cae Container App Environment
- DELETED: socsocacr ACR
- All env vars migrated to Web App
- Startup: npx langgraphjs dev --host 0.0.0.0 --port 2024 --no-browser
- WEBSITES_PORT=2024

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 05:47:32 +08:00

45 lines
1.1 KiB
YAML

name: Deploy LangGraph UI to Azure Static Web Apps
on:
push:
branches: [main]
paths:
- "langgraph/**"
- ".github/workflows/deploy-langgraph-ui.yml"
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install pnpm
run: corepack enable && corepack prepare pnpm@10 --activate
- name: Install dependencies
working-directory: langgraph
run: pnpm install --frozen-lockfile
- name: Build Vite frontend
working-directory: langgraph
env:
VITE_LANGGRAPH_URL: https://soc-langgraph.azurewebsites.net
run: pnpm vite build
- name: Deploy to Azure Static Web Apps
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.SWA_LANGGRAPH_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: upload
app_location: langgraph/dist
skip_app_build: true