From b4b5ec0bdf2ac21f47d619a95b6e5687663e371c Mon Sep 17 00:00:00 2001 From: fboulnois Date: Sat, 6 Jul 2024 07:36:59 -0400 Subject: [PATCH] feat: add pipeline to create and copy csv outputs --- .github/workflows/release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33f4656..d2914bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,24 @@ on: jobs: release: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout the code uses: actions/checkout@v4 + - name: Remove existing artifacts + run: rm csv/* + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build Docker image + uses: docker/build-push-action@v6 + with: + context: . + load: true + tags: ${{ github.repository }} + cache-from: type=gha + cache-to: type=gha,mode=max + - name: Run Docker image + run: docker run --name llm-leaderboard-csv ${{ github.repository }} + - name: Copy Docker container artifacts + run: docker cp llm-leaderboard-csv:/home/docker/csv/ ./