From 6f8443d16d87d825db65ba1e74ada07ff583bcc0 Mon Sep 17 00:00:00 2001 From: Lukas Tenbrink Date: Mon, 28 Oct 2024 02:21:43 +0100 Subject: [PATCH] In the GitHub runner, merge artifacts after all platforms have built. --- .github/workflows/build.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4ed631e..879b17f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,7 +73,7 @@ jobs: - name: Upload artifacts (Linux) if: matrix.os == 'ubuntu-latest' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: godot-python-${{ matrix.platform }}-${{ matrix.arch }} path: godot-python*.zip @@ -81,7 +81,7 @@ jobs: - name: Upload artifacts (Windows) if: matrix.os == 'windows-latest' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: godot-python-${{ matrix.platform }}-${{ matrix.arch }} path: | @@ -92,7 +92,7 @@ jobs: - name: Upload artifacts (macOS) if: matrix.os == 'macos-latest' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: godot-python-${{ matrix.platform }}-${{ matrix.arch }} path: bin/**/* @@ -107,3 +107,13 @@ jobs: echo "Releasing artifact for windows" elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then echo "Releasing artifact for macOS" + merge: + runs-on: ubuntu-latest + needs: build + steps: + - name: Merge Artifacts + uses: actions/upload-artifact/merge@v4 + with: + name: godot-python + pattern: godot-python-* + delete-merged: true