- CI now runs pnpm install and includes node_modules in the zip artifact - startup.sh simplified: removed pnpm install fallback, uses direct bin path instead of npx - Azure Web App always-on enabled to prevent cold starts Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
name: Deploy LangGraph Server to Azure Web App
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "langgraph/**"
|
|
- ".github/workflows/deploy-langgraph.yml"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
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: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
cd langgraph
|
|
pnpm install --frozen-lockfile
|
|
|
|
- name: Package for deployment
|
|
run: |
|
|
cd langgraph
|
|
touch .env
|
|
mkdir -p .langgraph_api
|
|
zip -r ../deploy-langgraph.zip . \
|
|
-x ".git/*" "dist/*" ".DS_Store"
|
|
|
|
- name: Login to Azure
|
|
uses: azure/login@v2
|
|
with:
|
|
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_E361D63054AD449285A5D65AA4425533 }}
|
|
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_62D66D4E65AC4A6C872064AD668AC691 }}
|
|
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_5D7B0564A55F4209A91149F2642D3F69 }}
|
|
|
|
- name: Deploy to Azure Web App
|
|
uses: azure/webapps-deploy@v3
|
|
with:
|
|
app-name: soc-langgraph
|
|
package: deploy-langgraph.zip
|