From 04ba87277d5e2972aa12883c7f12bd34736c0705 Mon Sep 17 00:00:00 2001 From: Kai Waldrant Date: Wed, 7 Aug 2024 15:55:36 +0200 Subject: [PATCH] refactor build ci (#24) * add build * [WIP] change how build is triggered * [WIP] add a test * [WIP] refactor to phase --- .github/workflows/build.yaml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fe955ea..670fead 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -89,7 +89,6 @@ jobs: - uses: actions/checkout@v4 with: - submodules: 'recursive' ref: ${{ needs.target.outputs.target_branch }} - uses: viash-io/viash-actions/setup@v6 @@ -109,7 +108,25 @@ jobs: run: | ${{matrix.component.executable}} ---engine docker ---setup push ---verbose - # Add step to copy files to . + # phase 3 + cleanup: + name: Clean up repository + needs: target + + runs-on: ubuntu-latest + permissions: + contents: write + + strategy: + fail-fast: false + + steps: + - uses: data-intuitive/reclaim-the-bytes@v2 + + - uses: actions/checkout@v4 + with: + ref: ${{ needs.target.outputs.target_branch }} + # Add step to copy files to . - name: Copy executables to root run: | echo "Copying directories to root"