Skip to content

Deploy Agent to LiveKit Cloud #28

Deploy Agent to LiveKit Cloud

Deploy Agent to LiveKit Cloud #28

Workflow file for this run

name: Deploy Agent to LiveKit Cloud
on:
workflow_dispatch:
inputs:
operation:
description: "Operation to perform"
required: true
type: choice
options:
- deploy
default: "deploy"
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
concurrency:
group: ${{ github.workflow }}-agent
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Create temporary livekit.toml
run: |
cat > agent/livekit.toml << 'EOF'
[project]
subdomain = "geminiplayground-cmxxiyax"
[agent]
id = "CA_K5ABztZkb3G4"
EOF
echo "✅ Created temporary livekit.toml for deployment"
cat agent/livekit.toml
- name: Deploy LiveKit Cloud Agent
if: github.event.inputs.operation == 'deploy'
uses: livekit/[email protected]
env:
LIVEKIT_URL: ${{ secrets.LIVEKIT_URL }}
LIVEKIT_API_KEY: ${{ secrets.LIVEKIT_API_KEY }}
LIVEKIT_API_SECRET: ${{ secrets.LIVEKIT_API_SECRET }}
SECRET_LIST: DUMMY_SECRET=not-used
with:
OPERATION: deploy
WORKING_DIRECTORY: agent
- name: Deployment summary
if: github.event.inputs.operation == 'deploy'
run: |
echo "## Deployment Complete" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Working Directory:** agent" >> $GITHUB_STEP_SUMMARY
echo "**Branch:** ${{ github.ref_name }}" >> $GITHUB_STEP_SUMMARY
echo "**Commit:** ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY