46 lines
1.2 KiB
YAML
46 lines
1.2 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.jollysand-7f0f231b.southeastasia.azurecontainerapps.io
|
|
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: /
|
|
output_location: langgraph/dist
|
|
skip_app_build: true
|