-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove helpers folder * Revert "remove helpers folder" This reverts commit 7dbe659. * move folders * trigger re-deployment
- Loading branch information
Showing
19 changed files
with
70 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,80 @@ | ||
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' | ||
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 | ||
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 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Authenticate with Agentverse | ||
run: avctl auth token ${{ secrets.AGENTVERSE_API_KEY }} | ||
- 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) | ||
- 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 }} | ||
curl -L -o avctl_Linux_x86_64.tar.gz $LATEST_RELEASE_URL | ||
- name: Check for newly deployed agents | ||
id: check-new-agents | ||
run: | | ||
if git diff --quiet 1-uagents/**.avctl**; then | ||
echo "new=true" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "new=false" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Extract binary and install | ||
run: | | ||
tar -xvf avctl_Linux_x86_64.tar.gz | ||
chmod +x avctl | ||
mv avctl /usr/local/bin/avctl | ||
- 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' | ||
- 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: | | ||
if git diff --quiet 1-uagents/**.avctl**; then | ||
echo "new=true" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "new=false" >> "$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' |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters