Update a LlamaAgent deployment on LlamaCloud
| Name | Desscription | Required | Default |
|---|---|---|---|
llama-cloud-api-key |
API key for LlamaCloud | true | '' |
llama-cloud-project-id |
Project ID for LlamaCloud | true | '' |
deployment-id |
ID of the deployed LlamaAgent | true | '' |
git-reference |
Git reference for deployment update | false | '' |
This action does not produce outputs.
name: Update LlamaAgent Deployment
on:
push:
branches:
- main
jobs:
update-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update deployment
uses: run-llama/llamactl-deploy@a883f44eb9512d33714db4b0c545a099b93577ec
with:
llama-cloud-api-key: ${{ secrets.LLAMA_CLOUD_API_KEY }}
llama-cloud-project-id: ${{ secrets.LLAMA_CLOUD_PROJECT_ID }}
deployment-id: "your-deployment-id"
git-reference: ${{ github.sha }} # not requiredThis action works by:
- Setting up uv (through
astral-sh/setup-uv) - Running
llamactl authfor token-based authentication to LlamaCloud - Running
llamactl deployments update <your_deployment_id>(with the optional--git-ref <your_git_reference>ifgit-referenceis provided as input)
Get to know more about llamactl and LlamaAgents in the dedicated documentation
Contributions (both for the blog and for the source code) are more than welcome! You can find a detail contribution guide here.
The code is provided under the MIT License