Sync skill tree to a versioned website (#289)

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
This commit is contained in:
merwanehamadi
2023-08-11 17:28:53 -07:00
committed by GitHub
parent ec2757f6d1
commit 1560892c58
5 changed files with 30 additions and 4 deletions

View File

@@ -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