wooden-dream-294
08/24/2025, 10:00 AMtall-airline-16756
08/24/2025, 10:00 AMtall-airline-16756
08/24/2025, 10:02 AMlk agent deploy inside a GitHub Action, here’s a simple way to get it done:
1. First, set up a GitHub Actions workflow like this:
name: Deploy Agent
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install LiveKit CLI
run: |
curl -sSL https://get.livekit.io/cli | bash
- name: Deploy agent
run: lk agent deploy
env:
LIVEKIT_API_KEY: ${{ secrets.LIVEKIT_API_KEY }}
LIVEKIT_API_SECRET: ${{ secrets.LIVEKIT_API_SECRET }}
LIVEKIT_URL: ${{ secrets.LIVEKIT_URL }}
1. Next, make sure you’ve added these secrets to your GitHub repo:
• LIVEKIT_API_KEY: Your LiveKit project API key
• LIVEKIT_API_SECRET: Your LiveKit project API secret
• LIVEKIT_URL: Your LiveKit project URL (something like wss://your-project.livekit.cloud)
1. Don’t forget to include a livekit.toml config file and a Dockerfile in your repo.
2. Also, if you prefer, you can manage secrets with a file and pass it to the deploy command using --secrets-file.
And that’s it! This will help you automate deploying your LiveKit agent right from GitHub Actions. If you hit any bumps or have questions, just give me a shout—I’m here to help!
Sources: Agent deployment CLI reference | LiveKit Docs | Deploying to LiveKit Cloud | LiveKit Docs