Skip to content

chore: remove config for deleted agents (#52) #9

chore: remove config for deleted agents (#52)

chore: remove config for deleted agents (#52) #9

name: Deploy Agents
on:
push:
branches:
- main
paths:
- "1-uagents/finance/**"
- "1-uagents/geo/**"
- "1-uagents/knowledge-base/**"
- "1-uagents/search/**"
- "1-uagents/travel/**"
- "1-uagents/utility/**"
- "1-uagents/communication/**"
- "scripts/deploy-all-agents.sh"
- ".github/workflows/deploy-agents.yaml"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download latest AVCTL release binary
run: |
LATEST_RELEASE_URL=$(curl -s https://api.github.com/repos/fetchai/avctl/releases/latest \
| grep browser_download_url \
| grep avctl_Linux_x86_64.tar.gz \
| cut -d '"' -f 4)
curl -L -o avctl_Linux_x86_64.tar.gz $LATEST_RELEASE_URL
- name: Extract binary and install
run: |
tar -xvf avctl_Linux_x86_64.tar.gz
chmod +x avctl
mv avctl /usr/local/bin/avctl
- name: Authenticate with Agentverse
run: avctl auth token ${{ secrets.AGENTVERSE_API_KEY }}
- name: Deploy all agents
run: ./scripts/deploy-all-agents.sh
env:
ALPHAVANTAGE_API_KEY: ${{ secrets.ALPHAVANTAGE_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
OCM_API_KEY: ${{ secrets.OCM_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENCAGE_API_KEY: ${{ secrets.OPENCAGE_API_KEY }}
WEATHERAPI_KEY: ${{ secrets.WEATHERAPI_KEY }}
HUGGINGFACE_API_KEY: ${{ secrets.HUGGINGFACE_API_KEY }}
GEOAPIFY_API_KEY: ${{ secrets.GEOAPIFY_API_KEY }}
TAVILY_API_KEY: ${{ secrets.TAVILY_API_KEY }}
RAPIDAPI_API_KEY: ${{ secrets.RAPIDAPI_API_KEY }}
SAPLING_API_KEY: ${{ secrets.SAPLING_API_KEY }}
- name: Check for newly deployed agents
id: check-new-agents
run: |
git add 1-uagents/**.avctl**
if git diff --cached --quiet 1-uagents/**.avctl**; then
echo "new=false" >> "$GITHUB_OUTPUT"
else
echo "new=true" >> "$GITHUB_OUTPUT"
fi
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "deploy: add .avctl files for new agents"
title: "deploy: add deployment configuration files for new agents"
body: "This PR adds AVCTL deployment configuration files for new agents."
base: "main"
branch: "chore/deploy-production-agents-${{ github.run_number }}"
add-paths: "1-uagents/**.avctl**"
if: steps.check-new-agents.outputs.new == 'true'