mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-27 02:44:22 +01:00
Sync skill tree to a versioned website (#289)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
This commit is contained in:
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@@ -122,6 +122,11 @@ jobs:
|
||||
|
||||
- name: Setup Chrome and ChromeDriver
|
||||
run: |
|
||||
echo "Add submodules"
|
||||
cd agbenchmark/challenges
|
||||
git submodule update --init --remote --recursive
|
||||
cd ../..
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y unzip xvfb
|
||||
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
|
||||
@@ -273,6 +278,14 @@ jobs:
|
||||
if git push origin HEAD; then
|
||||
echo "Success!"
|
||||
poetry run python send_to_googledrive.py || echo "Failed to upload to Google Drive"
|
||||
echo "Adding skill_tree submodule to update website"
|
||||
poetry run agbenchmark start --mock
|
||||
cd agbenchmark/challenges/skill_tree
|
||||
git add .
|
||||
git commit -m "Update website with new skill tree"
|
||||
git remote set-url origin https://x-access-token:${{ env.GH_TOKEN }}@github.com/agbenchmark/skill-tree.github.io.git
|
||||
git push origin HEAD:refs/heads/main
|
||||
cd ../../..
|
||||
exit 0
|
||||
else
|
||||
echo "Attempt $(($attempts + 1)) failed. Retrying..."
|
||||
@@ -284,6 +297,8 @@ jobs:
|
||||
env:
|
||||
GDRIVE_BASE64: ${{ secrets.GDRIVE_BASE64 }}
|
||||
GITHUB_REF_NAME: ${{ github.ref_name }}
|
||||
BUILD_SKILL_TREE: true
|
||||
AGENT_NAME: ${{ matrix.agent-name }}
|
||||
|
||||
generate_charts:
|
||||
needs: tests
|
||||
|
||||
Reference in New Issue
Block a user