Skip to content

Libertai/deploy-agent-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

LibertAI agent deployment action - GitHub Action

What is it ?

A GitHub action that deploys an agent. For more information about agent deployment, check the documentation.

Usage

Classic usage

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"

Deploy with environnement for your agent

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.

Inputs

Action inputs

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

Outputs

Action outputs

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

About

Agents action for deployments.

Resources

Stars

Watchers

Forks

Packages

No packages published