A GitHub action that deploys an agent. For more information about agent deployment, check the documentation.
Deploy your agent when commits are pushed to the main
branch
name: Agent deployment
on:
push:
branches:
- "main"
jobs:
deploy-agent:
name: "Agent deployment"
runs-on: ubuntu-latest
steps:
- name: "libertai deployment"
uses: libertai/deploy-agent-action@v0.1.0
with:
agent-id: ${{ secrets.AGENT_ID }}
agent-secret: ${{ secrets.AGENT_SECRET }}
dependency-management-tool: "poetry"
python-version: 3.13.3
usage-type: "fastapi"
If your agent has access to the environnement and needs to use it, you can also provide it
- name: "libertai deployment"
uses: libertai/deploy-agent-action@v0.1.0
with:
agent-id: ${{ secrets.AGENT_ID }}
agent-secret: ${{ secrets.AGENT_SECRET }}
dependency-management-tool: "poetry"
python-version: 3.13.3
usage-type: "fastapi"
agent-environment: "API-KEY=VALUE \nLOCALHOST_URL=http://localhost:3000"
If you want, you can add your environment into your github repository and use it instead of writing it directly for big environments.
Name | Description | Required | Default |
---|---|---|---|
agent-id |
Required ID that will be used to deploy the agent | ✅ | |
agent-secret |
Required secret that will be used to deploy the agent | ✅ | |
dependency-management-tool |
Package manager used to handle dependencies | poetry | |
python-version |
Version to deploy with | 3.13.3 | |
usage-type |
How the agent is called | fastapi | |
agent-environment |
If provided, your agent will have access to this environment |
You can get the following outputs from this actions:
Name | Description |
---|---|
deployment-success |
Agent sucess status when deployed |
message |
Received message when trying to deploy your agent using the libertAI's CLI |
url |
URL to your agent's instance |